Skip to content

Commit

Permalink
Reduce pause time
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrel-b committed May 3, 2024
1 parent 31cf537 commit 33b5d09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/tokenmanage/tokenmanage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 33b5d09

Please sign in to comment.