From ff92b591fae369225b6435d59b24fe90987d5626 Mon Sep 17 00:00:00 2001 From: irrun Date: Tue, 27 Aug 2024 16:12:04 +0800 Subject: [PATCH] fix: refresh sentry nonce every 500ms --- node/validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/validator.go b/node/validator.go index 4ba2d65..e46a2cf 100644 --- a/node/validator.go +++ b/node/validator.go @@ -94,7 +94,7 @@ func NewValidator(config ValidatorConfig) Validator { payAccount: acc, } - if _, err := v.scheduler.Every(10).Second().Do(func() { + if _, err := v.scheduler.Every(500).Milliseconds().Do(func() { v.refresh() }); err != nil { log.Debugw("error while setting up scheduler", "err", err)