Skip to content

Commit

Permalink
fix: use correct context to close connection (#127)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Tingaikin <[email protected]>
  • Loading branch information
denis-tingaikin authored Feb 24, 2021
1 parent cc51c5a commit f3aa694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func main() {
}

defer func() {
closeCtx, cancelClose := context.WithTimeout(ctx, rootConf.RequestTimeout)
closeCtx, cancelClose := context.WithTimeout(context.Background(), rootConf.RequestTimeout)
defer cancelClose()
_, _ = nsmClient.Close(closeCtx, resp)
}()
Expand Down

0 comments on commit f3aa694

Please sign in to comment.