snap indexing: fix logging #4937

This commit is contained in:
Alex Sharov 2022-08-05 09:01:17 +07:00 committed by GitHub
parent dfa77ac871
commit 05e5634653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -794,7 +794,10 @@ func BuildMissedIndices(ctx context.Context, dir string, chainID uint256.Int, tm
for {
select {
case err := <-errs:
case err, ok := <-errs:
if !ok {
return nil
}
if err != nil {
return err
}