Skip to content

Commit

Permalink
add bytes meter
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoell committed Feb 23, 2024
1 parent 9ab1a6b commit 07aa162
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions firehose/server/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func (s *Server) Block(ctx context.Context, request *pbfirehose.SingleBlockReque
blockNum = ref.BlockNumber.Num
}

ctx = dmetering.WithBytesMeter(ctx)
blk, err := s.blockGetter.Get(ctx, blockNum, blockHash, s.logger)
if err != nil {
if _, ok := status.FromError(err); ok {
Expand Down

0 comments on commit 07aa162

Please sign in to comment.