Rename block by range request log (#13561)

This commit is contained in:
terence 2024-02-03 11:20:04 -08:00 committed by GitHub
parent e3ce1bde45
commit 61ab4bf7ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@ func (s *Service) beaconBlocksByRangeRPCHandler(ctx context.Context, msg interfa
if !ok { if !ok {
return errors.New("message is not type *pb.BeaconBlockByRangeRequest") return errors.New("message is not type *pb.BeaconBlockByRangeRequest")
} }
log.WithField("start-slot", m.StartSlot).WithField("count", m.Count).Debug("BeaconBlocksByRangeRequest") log.WithField("startSlot", m.StartSlot).WithField("count", m.Count).Debug("Serving block by range request")
rp, err := validateRangeRequest(m, s.cfg.clock.CurrentSlot()) rp, err := validateRangeRequest(m, s.cfg.clock.CurrentSlot())
if err != nil { if err != nil {
s.writeErrorResponseToStream(responseCodeInvalidRequest, err.Error(), stream) s.writeErrorResponseToStream(responseCodeInvalidRequest, err.Error(), stream)