From 33b5d095415635bd7326548ff457cf660d9240df Mon Sep 17 00:00:00 2001 From: jarrel Date: Fri, 3 May 2024 10:00:34 -0700 Subject: [PATCH] Reduce pause time --- service/tokenmanage/tokenmanage.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service/tokenmanage/tokenmanage.go b/service/tokenmanage/tokenmanage.go index 5872ae786..4d71839ba 100644 --- a/service/tokenmanage/tokenmanage.go +++ b/service/tokenmanage/tokenmanage.go @@ -21,6 +21,8 @@ import ( "github.com/mikeydub/go-gallery/util" ) +var pauseFlakingContractFor = time.Hour + // ErrBadToken is an error indicating that there is an issue with the token itself type ErrBadToken struct{ Err error } @@ -196,7 +198,7 @@ func (m Manager) recordError(ctx context.Context, td db.TokenDefinition, origina return } - nowFlaky, err := m.Registry.pauseContract(ctx, td.Chain, td.ContractAddress, time.Hour*3) + nowFlaky, err := m.Registry.pauseContract(ctx, td.Chain, td.ContractAddress, pauseFlakingContractFor) if err != nil { logger.For(ctx).Errorf("failed to pause contract:%s", err) sentryutil.ReportError(ctx, err)