Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
samsondav committed Jun 21, 2023
1 parent e92a181 commit 0f3502f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/services/relay/evm/mercury/data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ func (ds *datasource) Observe(ctx context.Context, repts ocrtypes.ReportTimestam
wg.Add(1)
go func() {
defer wg.Done()
var val *int64
val, err = ds.fetcher.FetchInitialMaxFinalizedBlockNumber(ctx)
if err != nil {
obs.MaxFinalizedBlockNumber.Err = err
val, fetchErr := ds.fetcher.FetchInitialMaxFinalizedBlockNumber(ctx)
if fetchErr != nil {
obs.MaxFinalizedBlockNumber.Err = fetchErr
return
}
if val != nil {
Expand Down

0 comments on commit 0f3502f

Please sign in to comment.