From 7a952b4fceb7557c8c5d8e6e65062f36dad6bfe6 Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Fri, 13 Jan 2023 16:56:28 -0300 Subject: [PATCH] honor sequencer rate limiting for turn taking Signed-off-by: Ignacio Hagopian --- cmd/kzgcli/contribute.go | 2 +- sequencerclient/sequencerclient.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/kzgcli/contribute.go b/cmd/kzgcli/contribute.go index 76d1337..1c338ff 100644 --- a/cmd/kzgcli/contribute.go +++ b/cmd/kzgcli/contribute.go @@ -15,7 +15,7 @@ import ( ) const ( - tryContributeAttemptDelay = time.Second * 15 + tryContributeAttemptDelay = time.Second * 30 sendContributionRetryDelay = time.Second ) diff --git a/sequencerclient/sequencerclient.go b/sequencerclient/sequencerclient.go index 13222c5..9ce8867 100644 --- a/sequencerclient/sequencerclient.go +++ b/sequencerclient/sequencerclient.go @@ -87,7 +87,6 @@ func (c *Client) TryContribute(ctx context.Context, sessionID string) (*contribu } // Should we keep waiting for our turn? if mwr.Error != "" { - fmt.Println(mwr.Error) return nil, false, nil }