瀏覽代碼

Fix typo: adapater -> adapter

Signed-off-by: Rui Cao <ruicao@alauda.io>
Rui Cao 6 年之前
父節點
當前提交
d3e155d926
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      daemon/metrics.go
  2. 1 1
      daemon/metrics_unix.go

+ 1 - 1
daemon/metrics.go

@@ -123,7 +123,7 @@ func (d *Daemon) cleanupMetricsPlugins() {
 
 
 			adapter, err := makePluginAdapter(p)
 			adapter, err := makePluginAdapter(p)
 			if err != nil {
 			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
 				return
 			}
 			}
 			if err := adapter.StopMetrics(); err != nil {
 			if err := adapter.StopMetrics(); err != nil {

+ 1 - 1
daemon/metrics_unix.go

@@ -51,7 +51,7 @@ func registerMetricsPluginCallback(store *plugin.Store, sockPath string) {
 
 
 		adapter, err := makePluginAdapter(p)
 		adapter, err := makePluginAdapter(p)
 		if err != nil {
 		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 {
 		if err := adapter.StartMetrics(); err != nil {
 			logrus.WithError(err).WithField("plugin", p.Name()).Error("Error starting metrics collector plugin")
 			logrus.WithError(err).WithField("plugin", p.Name()).Error("Error starting metrics collector plugin")