forked from TrueCloudLab/frostfs-node
[#873] node: Delete useless notary timer
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
2a3a6cc0ba
commit
8374c3d2f5
1 changed files with 0 additions and 16 deletions
|
@ -5,7 +5,6 @@ import (
|
||||||
|
|
||||||
wrapNetmap "github.com/nspcc-dev/neofs-node/pkg/morph/client/netmap/wrapper"
|
wrapNetmap "github.com/nspcc-dev/neofs-node/pkg/morph/client/netmap/wrapper"
|
||||||
"github.com/nspcc-dev/neofs-node/pkg/morph/timer"
|
"github.com/nspcc-dev/neofs-node/pkg/morph/timer"
|
||||||
"go.uber.org/zap"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
@ -84,18 +83,3 @@ func newEigenTrustIterTimer(c *cfg, it *EigenTrustDuration, handler timer.BlockT
|
||||||
|
|
||||||
c.cfgMorph.blockTimers = append(c.cfgMorph.blockTimers, c.cfgMorph.eigenTrustTimer)
|
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()))
|
|
||||||
}
|
|
||||||
},
|
|
||||||
),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue