Commit 2d99d0ac authored by Ralph Pichler's avatar Ralph Pichler Committed by GitHub

add sleep for sync check (#1308)

parent 00f4c06a
...@@ -57,5 +57,11 @@ func WaitSynced(ctx context.Context, backend Backend, maxDelay time.Duration) er ...@@ -57,5 +57,11 @@ func WaitSynced(ctx context.Context, backend Backend, maxDelay time.Duration) er
if synced { if synced {
return nil return nil
} }
select {
case <-ctx.Done():
return ctx.Err()
case <-time.After(5 * time.Second):
}
} }
} }
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