From d3e155d926ba4d5d1848826a53c280de9f643c85 Mon Sep 17 00:00:00 2001 From: Rui Cao Date: Mon, 8 Oct 2018 19:15:38 +0800 Subject: [PATCH] Fix typo: adapater -> adapter Signed-off-by: Rui Cao --- daemon/metrics.go | 2 +- daemon/metrics_unix.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/metrics.go b/daemon/metrics.go index f6961a3553..20030c4270 100644 --- a/daemon/metrics.go +++ b/daemon/metrics.go @@ -123,7 +123,7 @@ func (d *Daemon) cleanupMetricsPlugins() { adapter, err := makePluginAdapter(p) if err != nil { - logrus.WithError(err).WithField("plugin", p.Name()).Error("Error creating metrics plugin adapater") + logrus.WithError(err).WithField("plugin", p.Name()).Error("Error creating metrics plugin adapter") return } if err := adapter.StopMetrics(); err != nil { diff --git a/daemon/metrics_unix.go b/daemon/metrics_unix.go index 452424e685..a9b5f810b0 100644 --- a/daemon/metrics_unix.go +++ b/daemon/metrics_unix.go @@ -51,7 +51,7 @@ func registerMetricsPluginCallback(store *plugin.Store, sockPath string) { adapter, err := makePluginAdapter(p) if err != nil { - logrus.WithError(err).WithField("plugin", p.Name()).Error("Error creating plugin adapater") + logrus.WithError(err).WithField("plugin", p.Name()).Error("Error creating plugin adapter") } if err := adapter.StartMetrics(); err != nil { logrus.WithError(err).WithField("plugin", p.Name()).Error("Error starting metrics collector plugin")