Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Argue <[email protected]>
  • Loading branch information
Guitarheroua and peterargue authored Dec 20, 2024
1 parent 103d15d commit 4b7275b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/access/rpc/backend/backend_stream_transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ func (b *backendSubscribeTransactions) createSubscription(
// Get height to start subscription from
if startBlockID == flow.ZeroID {
if nextHeight, err = b.blockTracker.GetStartHeightFromHeight(startBlockHeight); err != nil {
b.log.Error().Err(err).Uint64("block_height", startBlockHeight).Msg("failed to get start height")
b.log.Debug().Err(err).Uint64("block_height", startBlockHeight).Msg("failed to get start height")
return subscription.NewFailedSubscription(err, "failed to get start height")
}
} else {
if nextHeight, err = b.blockTracker.GetStartHeightFromBlockID(startBlockID); err != nil {
b.log.Error().Err(err).Str("block_id", startBlockID.String()).Msg("failed to get start height")
b.log.Debug().Err(err).Str("block_id", startBlockID.String()).Msg("failed to get start height")
return subscription.NewFailedSubscription(err, "failed to get start height")
}
}
Expand Down

0 comments on commit 4b7275b

Please sign in to comment.