[stream] elaborated log message to pickAvailableStream

pull/3591/head
Jacky Wang 4 years ago
parent 72f74c08cb
commit 6ef5bc5faa
No known key found for this signature in database
GPG Key ID: 1085CE5F4FF5842C
  1. 2
      p2p/stream/common/requestmanager/requestmanager.go

@ -289,7 +289,7 @@ func (rm *requestManager) getNextRequest() (*request, *stream) {
st, err := rm.pickAvailableStream(req) st, err := rm.pickAvailableStream(req)
if err != nil { if err != nil {
rm.logger.Debug().Msg("No available streams.") rm.logger.Debug().Err(err).Str("request", req.String()).Msg("Pick available streams.")
rm.addRequestToWaitings(req, reqPriorityHigh) rm.addRequestToWaitings(req, reqPriorityHigh)
return nil, nil return nil, nil
} }

Loading…
Cancel
Save