Skip to content

Commit

Permalink
Merge branch 'development' of github.com:nuclio/nuclio into development
Browse files Browse the repository at this point in the history
  • Loading branch information
pavius committed Dec 11, 2018
2 parents a673d2a + d20d071 commit e32c01d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/platform/kube/scaler/autoscaler.go
Expand Up @@ -47,7 +47,7 @@ func newAutoScaler(parentLogger logger.Logger,
metricName: metricName,
windowSize: windowSize,
scaleInterval: scaleInterval,
metricsChannel: make(chan metricEntry),
metricsChannel: make(chan metricEntry, 1024),
}, nil
}

Expand Down Expand Up @@ -139,6 +139,7 @@ func (as *autoscaler) reportMetric(metric metricEntry) error {
// don't block, try and fail fast
select {
case as.metricsChannel <- metric:
return nil
default:
as.logger.WarnWith("Failed to report metric",
"functionName", metric.functionName,
Expand Down

0 comments on commit e32c01d

Please sign in to comment.