From a06ff2be22e808faf701763adad37ff0cdea0daf Mon Sep 17 00:00:00 2001 From: He Liu Date: Sat, 25 May 2019 20:01:38 -0700 Subject: [PATCH] fox cloudwatchiface changes --- metrics/cloudwatch2/cloudwatch2.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics/cloudwatch2/cloudwatch2.go b/metrics/cloudwatch2/cloudwatch2.go index b25b39243..a55397772 100644 --- a/metrics/cloudwatch2/cloudwatch2.go +++ b/metrics/cloudwatch2/cloudwatch2.go @@ -32,7 +32,7 @@ type CloudWatch struct { mtx sync.RWMutex sem chan struct{} namespace string - svc cloudwatchiface.CloudWatchAPI + svc cloudwatchiface.ClientAPI counters *lv.Space logger log.Logger numConcurrentRequests int @@ -66,7 +66,7 @@ func WithConcurrentRequests(n int) Option { // Namespace is applied to all created metrics and maps to the CloudWatch namespace. // Callers must ensure that regular calls to Send are performed, either // manually or with one of the helper methods. -func New(namespace string, svc cloudwatchiface.CloudWatchAPI, options ...Option) *CloudWatch { +func New(namespace string, svc cloudwatchiface.ClientAPI, options ...Option) *CloudWatch { cw := &CloudWatch{ namespace: namespace, svc: svc,