Skip to content

Commit

Permalink
revert logging of binary data (#11199)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Jul 17, 2024
1 parent 229b504 commit 4c3f26f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erigon-lib/txpool/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,15 @@ func (f *Fetch) receiveMessage(ctx context.Context, sentryClient sentry.SentryCl
}
return fmt.Errorf("txpool.receiveMessage: %w", err)
}
if req == nil {
return nil
}
if err = f.handleInboundMessage(streamCtx, req, sentryClient); err != nil {
if grpcutil.IsRetryLater(err) || grpcutil.IsEndOfStream(err) {
time.Sleep(3 * time.Second)
continue
}
f.logger.Debug("[txpool.fetch] Handling incoming message", "msg", string(req.Data), "reqID", req.Id.String(), "err", err)
f.logger.Debug("[txpool.fetch] Handling incoming message", "reqID", req.Id.String(), "err", err)
}
if f.wg != nil {
f.wg.Done()
Expand Down

0 comments on commit 4c3f26f

Please sign in to comment.