Stringer interface (#3181)
This commit is contained in:
@@ -154,11 +154,11 @@ func (c *channelObserver) GetTrend() (bwe.ChannelTrend, channelCongestionReason)
|
|||||||
|
|
||||||
switch {
|
switch {
|
||||||
case estimateDirection == ccutils.TrendDirectionDownward:
|
case estimateDirection == ccutils.TrendDirectionDownward:
|
||||||
c.logger.Debugw("stream allocator: channel observer: estimate is trending downward", "channel", c)
|
c.logger.Debugw("remote bwe: channel observer: estimate is trending downward", "channel", c)
|
||||||
return bwe.ChannelTrendCongesting, channelCongestionReasonEstimate
|
return bwe.ChannelTrendCongesting, channelCongestionReasonEstimate
|
||||||
|
|
||||||
case c.nackTracker.IsTriggered():
|
case c.nackTracker.IsTriggered():
|
||||||
c.logger.Debugw("stream allocator: channel observer: high rate of repeated NACKs", "channel", c)
|
c.logger.Debugw("remote bwe: channel observer: high rate of repeated NACKs", "channel", c)
|
||||||
return bwe.ChannelTrendCongesting, channelCongestionReasonLoss
|
return bwe.ChannelTrendCongesting, channelCongestionReasonLoss
|
||||||
|
|
||||||
case estimateDirection == ccutils.TrendDirectionUpward:
|
case estimateDirection == ccutils.TrendDirectionUpward:
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ func (n *nackTracker) IsTriggered() bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (n *nackTracker) ToString() string {
|
func (n *nackTracker) String() string {
|
||||||
window := ""
|
window := ""
|
||||||
if !n.windowStartTime.IsZero() {
|
if !n.windowStartTime.IsZero() {
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
@@ -136,7 +136,7 @@ func (n *nackTracker) updateHistory() {
|
|||||||
n.history = n.history[1:]
|
n.history = n.history[1:]
|
||||||
}
|
}
|
||||||
|
|
||||||
n.history = append(n.history, n.ToString())
|
n.history = append(n.history, n.String())
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ func (r *RemoteBWE) ProbingStart(expectedBandwidthUsage int64) {
|
|||||||
r.lastExpectedBandwidthUsage = expectedBandwidthUsage
|
r.lastExpectedBandwidthUsage = expectedBandwidthUsage
|
||||||
|
|
||||||
r.params.Logger.Debugw(
|
r.params.Logger.Debugw(
|
||||||
"stream allocator: starting probe",
|
"remote bwe: starting probe",
|
||||||
"lastReceived", r.lastReceivedEstimate,
|
"lastReceived", r.lastReceivedEstimate,
|
||||||
"expectedBandwidthUsage", expectedBandwidthUsage,
|
"expectedBandwidthUsage", expectedBandwidthUsage,
|
||||||
"channel", r.channelObserver,
|
"channel", r.channelObserver,
|
||||||
|
|||||||
Reference in New Issue
Block a user