forked from nspcc-dev/neofs-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: Await pending async operations within command context
Previously some NeoFS CLI commands like `container create` waited for the operation persistence for a fixed period of time, decoupled from the command timeout specified by `--timeout` flag. The wait process should terminate when the command timeout expires. Use command context as a waiting stop in contract write ops (`put`, `delete`, `set-eacl`). Closes nspcc-dev#2124. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
- Loading branch information
1 parent
78ae2f5
commit 27168de
Showing
5 changed files
with
38 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,6 @@ import ( | |
|
||
const ( | ||
attributeDelimiter = "=" | ||
|
||
awaitTimeout = 120 // in seconds | ||
) | ||
|
||
var ( | ||
|