Skip to content

Commit

Permalink
added panic on fetch call
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Feb 2, 2024
1 parent 3de1bf8 commit 6203d68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions block/fetcher/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ func (f *RPCFetcher) fetch(ctx context.Context, requestedSlot uint64) (*rpc.GetB
}
}
}
if out == nil {
panic("out is nil and innerErr is nil. This should not happen.")
}
return nil
})

Expand Down

0 comments on commit 6203d68

Please sign in to comment.