Skip to content

Commit

Permalink
Avoid retry from allocateFromLocalCluster under context kill. (google…
Browse files Browse the repository at this point in the history
…forgames#2783)

* Version updates

* issue-2736-changes

Co-authored-by: Mark Mandel <[email protected]>
  • Loading branch information
mangalpalli and markmandel authored Oct 28, 2022
1 parent e395642 commit 1c2d4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gameserverallocations/allocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ func (c *Allocator) allocate(ctx context.Context, gsa *allocationv1.GameServerAl
case res := <-req.response: // wait for the batch to be completed
return res.gs, res.err
case <-ctx.Done():
return nil, errors.New("shutting down")
return nil, ErrTotalTimeoutExceeded
}
}

Expand Down

0 comments on commit 1c2d4b9

Please sign in to comment.