Browse Source

dcutr: fix log format to actually print error (#2725)

webrtc-logger-bug
the harder the luckier 8 months ago
committed by GitHub
parent
commit
91e1025f04
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      p2p/protocol/holepunch/svc.go

2
p2p/protocol/holepunch/svc.go

@ -182,7 +182,7 @@ func (s *Service) incomingHolePunch(str network.Stream) (rtt time.Duration, remo
}
if err := str.Scope().ReserveMemory(maxMsgSize, network.ReservationPriorityAlways); err != nil {
log.Debugf("error reserving memory for stream: %s, err")
log.Debugf("error reserving memory for stream: %s", err)
return 0, nil, nil, err
}
defer str.Scope().ReleaseMemory(maxMsgSize)

Loading…
Cancel
Save