[#120] Add waiter to frostfsid client #121
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-contract#121
Loading…
Reference in a new issue
No description provided.
Delete branch "vdomnich-yadro/frostfs-contract:vd/8357-add-tx-waiter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Waiter provides a configurable behavior for awaiting transaction completion:
@ -0,0 +66,4 @@
// Waiting failed
if err != nil {
return result, err
I would write
or
Fixed via the 2nd suggestion. Thanks!
@ -151,17 +153,21 @@ func New(ra actor.RPCActor, acc *wallet.Account, contract util.Uint160, opt Opti
if err != nil {
return nil, fmt.Errorf("init actor: %w", err)
}
waiter := commonclient.NewWaiter(act, opt.Waiter)
Can we choose other variable name to avoid collision with imported package name?
Fixed, thanks!
f7794b06f6
to126d98d655
@ -161,2 +165,3 @@
// NewSimple creates a new Client using exising actor.Actor.
// NewSimple creates a new Client using existing actor.Actor and default waiter options.
func NewSimple(act *actor.Actor, contract util.Uint160) *Client {
waiter := commonclient.NewWaiter(act, commonclient.WaiterOptions{})
The same 🙈 #121 (comment)
Oops, overlooked. Sorry! Fixed now)
126d98d655
to5f956751d4
New commits pushed, approval review dismissed automatically according to repository settings