Skip to content

Commit

Permalink
Merge branch 'release/0.4.0' into feat/solana-support
Browse files Browse the repository at this point in the history
  • Loading branch information
jazg committed Apr 20, 2021
2 parents 4d98cf7 + 4de37e8 commit e164908
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion watcher/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,12 @@ func (fetcher EthBurnLogFetcher) FetchBurnLogs(ctx context.Context, from uint64,
}

// Send the burn transaction to the resolver.
resultChan <- BurnLogResult{Result: result}
select {
case <-ctx.Done():
resultChan <- BurnLogResult{Error: ctx.Err()}
return
default:
resultChan <- BurnLogResult{Result: result}
}
}
}()
Expand Down

0 comments on commit e164908

Please sign in to comment.