From b0eb7543dfa8283db1c7861d33a7a58e61e24358 Mon Sep 17 00:00:00 2001 From: John Hilliard Date: Tue, 27 Feb 2024 20:14:01 -0500 Subject: [PATCH] fix: the client probably should not be closed as soon as it is created --- cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index 48dab30..63c688a 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -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 {