From 8374c3d2f52afc96fcb4c8a405978db37559fdb5 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Thu, 30 Sep 2021 22:11:39 +0300 Subject: [PATCH] [#873] node: Delete useless notary timer Signed-off-by: Pavel Karpy --- cmd/neofs-node/timers.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/cmd/neofs-node/timers.go b/cmd/neofs-node/timers.go index fd690bf0a..692337aa6 100644 --- a/cmd/neofs-node/timers.go +++ b/cmd/neofs-node/timers.go @@ -5,7 +5,6 @@ import ( wrapNetmap "github.com/nspcc-dev/neofs-node/pkg/morph/client/netmap/wrapper" "github.com/nspcc-dev/neofs-node/pkg/morph/timer" - "go.uber.org/zap" ) type ( @@ -84,18 +83,3 @@ func newEigenTrustIterTimer(c *cfg, it *EigenTrustDuration, handler timer.BlockT c.cfgMorph.blockTimers = append(c.cfgMorph.blockTimers, c.cfgMorph.eigenTrustTimer) } - -func newDepositTimer(c *cfg) { - c.cfgMorph.blockTimers = append(c.cfgMorph.blockTimers, - timer.NewBlockTimer( - timer.StaticBlockMeter(c.cfgMorph.notaryDepositDuration), - func() { - _, err := makeNotaryDeposit(c) - if err != nil { - c.log.Warn("can't deposit notary contract", - zap.String("error", err.Error())) - } - }, - ), - ) -}