Skip to content

Commit

Permalink
dcutr: fix log format to actually print error (#2725)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlynxg authored Mar 7, 2024
1 parent bf5acb8 commit 91e1025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/protocol/holepunch/svc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 91e1025

Please sign in to comment.