Skip to content

Commit

Permalink
err check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro Kislov committed Sep 15, 2020
1 parent 1177538 commit 0263053
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/gameserverallocations/allocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ func (c *Allocator) allocateFromRemoteCluster(gsa *allocationv1.GameServerAlloca
request.MultiClusterSetting.Enabled = false
request.Namespace = connectionInfo.Namespace

ctx, _ := context.WithTimeout(context.Background(), totalRemoteAllocationTimeout)
ctx, cancel := context.WithTimeout(context.Background(), totalRemoteAllocationTimeout)
defer cancel() // nolint: errcheck
// Retry on remote call failures.
err = Retry(remoteAllocationRetry, func() error {
for i, ip := range connectionInfo.AllocationEndpoints {
Expand Down

0 comments on commit 0263053

Please sign in to comment.