[#1522] adm/frostfsid: Remove unreachable condition
All checks were successful
DCO action / DCO (pull_request) Successful in 1m44s
Vulncheck / Vulncheck (pull_request) Successful in 3m39s
Build / Build Components (pull_request) Successful in 4m17s
Pre-commit hooks / Pre-commit (pull_request) Successful in 4m22s
Tests and linters / Run gofumpt (pull_request) Successful in 4m38s
Tests and linters / gopls check (pull_request) Successful in 5m26s
Tests and linters / Staticcheck (pull_request) Successful in 5m46s
Tests and linters / Tests with -race (pull_request) Successful in 5m46s
Tests and linters / Lint (pull_request) Successful in 6m58s
Tests and linters / Tests (pull_request) Successful in 8m38s
All checks were successful
DCO action / DCO (pull_request) Successful in 1m44s
Vulncheck / Vulncheck (pull_request) Successful in 3m39s
Build / Build Components (pull_request) Successful in 4m17s
Pre-commit hooks / Pre-commit (pull_request) Successful in 4m22s
Tests and linters / Run gofumpt (pull_request) Successful in 4m38s
Tests and linters / gopls check (pull_request) Successful in 5m26s
Tests and linters / Staticcheck (pull_request) Successful in 5m46s
Tests and linters / Tests with -race (pull_request) Successful in 5m46s
Tests and linters / Lint (pull_request) Successful in 6m58s
Tests and linters / Tests (pull_request) Successful in 8m38s
SendConsensusTx() modifies SendTxs field, if it is not the case, there is a bug in code. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
8ccbf5a23a
commit
0f3ed39bf9
1 changed files with 0 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
||||||
package frostfsid
|
package frostfsid
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/big"
|
"math/big"
|
||||||
"sort"
|
"sort"
|
||||||
|
@ -489,10 +488,6 @@ func (f *frostfsidClient) sendWaitRes() (*state.AppExecResult, error) {
|
||||||
}
|
}
|
||||||
f.bw.Reset()
|
f.bw.Reset()
|
||||||
|
|
||||||
if len(f.wCtx.SentTxs) == 0 {
|
|
||||||
return nil, errors.New("no transactions to wait")
|
|
||||||
}
|
|
||||||
|
|
||||||
f.wCtx.Command.Println("Waiting for transactions to persist...")
|
f.wCtx.Command.Println("Waiting for transactions to persist...")
|
||||||
return f.roCli.Wait(f.wCtx.SentTxs[0].Hash, f.wCtx.SentTxs[0].Vub, nil)
|
return f.roCli.Wait(f.wCtx.SentTxs[0].Hash, f.wCtx.SentTxs[0].Vub, nil)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue