From 0f41c092078e022d9d531702d52cdf4e74efa656 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Tue, 22 Nov 2022 18:22:38 +0300 Subject: [PATCH] [#2075] node: Do not make notary requests on shutdown Signed-off-by: Pavel Karpy --- CHANGELOG.md | 1 + cmd/neofs-node/morph.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35167b65b..337577c9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ Changelog for NeoFS Node - `neofs-cli object hash` panic (#2079) - Closing `neo-go` WS clients on shutdown and switch processes (#2080) - Making notary deposits with a zero GAS balance (#2080) +- Notary requests on shutdown (#2075) ### Removed - `-g` option from `neofs-cli control ...` and `neofs-cli container create` commands (#2089) diff --git a/cmd/neofs-node/morph.go b/cmd/neofs-node/morph.go index 21db514f3..b41a6b7c4 100644 --- a/cmd/neofs-node/morph.go +++ b/cmd/neofs-node/morph.go @@ -161,7 +161,7 @@ func waitNotaryDeposit(c *cfg, tx util.Uint256) error { for i := 0; i < notaryDepositRetriesAmount; i++ { select { case <-c.ctx.Done(): - return nil + return c.ctx.Err() default: }