Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Update ConfigValue type in grpc assert
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmigottipati committed Jun 12, 2017
1 parent e4f468d commit 2263be7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions control/plugin/client/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,14 +468,14 @@ func (g *grpcClient) StreamMetrics(mts []core.Metric) (chan []core.Metric, chan
if values != nil {
maxCollectDuration, ok := values["MaxCollectDuration"]
if ok {
t, ok := maxCollectDuration.(*ctypes.ConfigValueInt)
t, ok := maxCollectDuration.(ctypes.ConfigValueInt)
if ok {
arg.MaxCollectDuration = int64(t.Value)
}
}
maxMetricsBuffer, ok := values["MaxMetricsBuffer"]
if ok {
t, ok := maxMetricsBuffer.(*ctypes.ConfigValueInt)
t, ok := maxMetricsBuffer.(ctypes.ConfigValueInt)
if ok {
arg.MaxMetricsBuffer = int64(t.Value)
}
Expand Down

0 comments on commit 2263be7

Please sign in to comment.