Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
fix: the client probably should not be closed as soon as it is created
Browse files Browse the repository at this point in the history
  • Loading branch information
praetoriansentry committed Feb 28, 2024
1 parent 75c254d commit b0eb754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func useKMSAuth(c *config.Config) (*bind.TransactOpts, common.Address, error) {
if err != nil {
return nil, common.Address{}, fmt.Errorf("failed to create kms client: %w", err)
}
defer client.Close()
// defer client.Close()

mk, err := etherkeyms.NewManagedKey(ctx, client, c.EthTxManager.KMSKeyName)
if err != nil {
Expand Down

0 comments on commit b0eb754

Please sign in to comment.