Skip to content

Commit

Permalink
accounts/abi/bind: replace context.TODO with context.Background (#23088)
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet authored Jun 22, 2021
1 parent fcd7bdc commit ddf1025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/abi/bind/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ func (c *BoundContract) UnpackLogIntoMap(out map[string]interface{}, event strin
// user specified it as such.
func ensureContext(ctx context.Context) context.Context {
if ctx == nil {
return context.TODO()
return context.Background()
}
return ctx
}

0 comments on commit ddf1025

Please sign in to comment.