Commit 47b4a0ed authored by istae's avatar istae Committed by GitHub

fix: deep source (#2290)

parent 6f74a2f4
......@@ -275,7 +275,7 @@ func NewBee(addr string, publicKey *ecdsa.PublicKey, signer crypto.Signer, netwo
if !isSynced {
logger.Infof("waiting to sync with the Ethereum backend")
err := transaction.WaitSynced(logger, p2pCtx, swapBackend, maxDelay)
err := transaction.WaitSynced(p2pCtx, logger, swapBackend, maxDelay)
if err != nil {
return nil, fmt.Errorf("waiting backend sync: %w", err)
}
......
......@@ -55,7 +55,7 @@ func IsSynced(ctx context.Context, backend Backend, maxDelay time.Duration) (boo
// WaitSynced will wait until we are synced with the given blockchain backend,
// with the given maxDelay duration as the maximum time we can be behind the
// last block.
func WaitSynced(logger logging.Logger, ctx context.Context, backend Backend, maxDelay time.Duration) error {
func WaitSynced(ctx context.Context, logger logging.Logger, backend Backend, maxDelay time.Duration) error {
for {
synced, blockTime, err := IsSynced(ctx, backend, maxDelay)
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment