From eb5248621ac43daa73796eccb83691d1c4883b57 Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Thu, 5 Oct 2023 10:57:58 +0300 Subject: [PATCH] [#723] netmap: Send bootstrap at each epoch tick Signed-off-by: Dmitrii Stepanov --- cmd/frostfs-node/netmap.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/cmd/frostfs-node/netmap.go b/cmd/frostfs-node/netmap.go index 7d4831bce..170a58444 100644 --- a/cmd/frostfs-node/netmap.go +++ b/cmd/frostfs-node/netmap.go @@ -179,15 +179,8 @@ func addNewEpochNotificationHandlers(c *cfg) { return } - n := ev.(netmapEvent.NewEpoch).EpochNumber() - - const reBootstrapInterval = 2 - - if (n-c.cfgNetmap.startEpoch)%reBootstrapInterval == 0 { - err := c.bootstrap() - if err != nil { - c.log.Warn(logs.FrostFSNodeCantSendRebootstrapTx, zap.Error(err)) - } + if err := c.bootstrap(); err != nil { + c.log.Warn(logs.FrostFSNodeCantSendRebootstrapTx, zap.Error(err)) } })