Skip to content

Commit

Permalink
cli: add exit code error for timeout await expiration
Browse files Browse the repository at this point in the history
This commit addresses the scenario where a timeout, set by the --await flag,
expires during processing. We now return a new error code specifically for
this case, ErrAwaitTimeout.

Closes #2380.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
  • Loading branch information
AliceInHunterland committed Aug 17, 2023
1 parent 66bc5b2 commit 644af01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ minor release, the component will be purged, so be prepared (see `Updating` sect
- Storage node no longer ignores unhealthy shards on startup (#2464)
- Processing of status errors returned by API client from NeoFS SDK RC-9 (#2465)
- `neofs-lens write-cache list` command duplication (#2505)
- `neofs-adm` create wallets only with `init` and `update-contracts` commands (#2134)

### Removed
- Deprecated `morph.rpc_endpoint` SN and `morph.endpoint.client` IR config sections (#2400)
Expand Down
2 changes: 1 addition & 1 deletion cmd/neofs-adm/internal/modules/morph/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func newInitializeContext(cmd *cobra.Command, v *viper.Viper) (*initializeContex
}

var w *wallet.Wallet
if cmd.Name() != "deploy" {
if cmd.Name() == "update-contracts" || cmd.Name() == "init" {
w, err = openContractWallet(v, cmd, walletDir)
if err != nil {
return nil, err
Expand Down

0 comments on commit 644af01

Please sign in to comment.