1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix typo: adapater -> adapter

Signed-off-by: Rui Cao <ruicao@alauda.io>
This commit is contained in:
Rui Cao 2018-10-08 19:15:38 +08:00
parent a3f54d4570
commit d3e155d926
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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")