[#2075] node: Do not make notary requests on shutdown

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
fyrchik/simplify-services
Pavel Karpy 2022-11-22 18:22:38 +03:00 committed by fyrchik
parent b8c30b88f6
commit 0f41c09207
2 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ Changelog for NeoFS Node
- `neofs-cli object hash` panic (#2079) - `neofs-cli object hash` panic (#2079)
- Closing `neo-go` WS clients on shutdown and switch processes (#2080) - Closing `neo-go` WS clients on shutdown and switch processes (#2080)
- Making notary deposits with a zero GAS balance (#2080) - Making notary deposits with a zero GAS balance (#2080)
- Notary requests on shutdown (#2075)
### Removed ### Removed
- `-g` option from `neofs-cli control ...` and `neofs-cli container create` commands (#2089) - `-g` option from `neofs-cli control ...` and `neofs-cli container create` commands (#2089)

View File

@ -161,7 +161,7 @@ func waitNotaryDeposit(c *cfg, tx util.Uint256) error {
for i := 0; i < notaryDepositRetriesAmount; i++ { for i := 0; i < notaryDepositRetriesAmount; i++ {
select { select {
case <-c.ctx.Done(): case <-c.ctx.Done():
return nil return c.ctx.Err()
default: default:
} }