From a5f91412fc38d40d85166f99dfb8be480519c7da Mon Sep 17 00:00:00 2001 From: irrun Date: Tue, 27 Aug 2024 16:21:06 +0800 Subject: [PATCH] fix: refresh sentry nonce every 500ms (#17) --- 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)