forked from TrueCloudLab/frostfs-node
[#685] neofs-adm: reduce amount of logs
If `init` is run on a dirty network (i.e. with some stages already done), no transactions are really sent so clean up logs a bit. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
b95c16879d
commit
90259b5cc7
1 changed files with 4 additions and 0 deletions
|
@ -180,6 +180,10 @@ func openAlphabetWallets(walletDir string) ([]*wallet.Wallet, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *initializeContext) awaitTx() error {
|
func (c *initializeContext) awaitTx() error {
|
||||||
|
if len(c.Hashes) == 0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
c.Command.Println("Waiting for transactions to persist...")
|
c.Command.Println("Waiting for transactions to persist...")
|
||||||
|
|
||||||
tick := time.NewTicker(c.PollInterval)
|
tick := time.NewTicker(c.PollInterval)
|
||||||
|
|
Loading…
Reference in a new issue