From 3805b875c6498a9697c692c010bc022e8ebd50b0 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Tue, 1 Dec 2020 17:33:47 +0300 Subject: golangci linters fix --- plugins/server/plugin.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/server/plugin.go') diff --git a/plugins/server/plugin.go b/plugins/server/plugin.go index 3411b007..ea6d42eb 100644 --- a/plugins/server/plugin.go +++ b/plugins/server/plugin.go @@ -15,7 +15,7 @@ import ( "github.com/spiral/roadrunner/v2/util" ) -const ServiceName = "server" +const PluginName = "server" // Plugin manages worker type Plugin struct { @@ -27,7 +27,7 @@ type Plugin struct { // Init application provider. func (server *Plugin) Init(cfg config.Configurer, log log.Logger) error { const op = errors.Op("Init") - err := cfg.UnmarshalKey(ServiceName, &server.cfg) + err := cfg.UnmarshalKey(PluginName, &server.cfg) if err != nil { return errors.E(op, errors.Init, err) } @@ -44,7 +44,7 @@ func (server *Plugin) Init(cfg config.Configurer, log log.Logger) error { // Name contains service name. func (server *Plugin) Name() string { - return ServiceName + return PluginName } func (server *Plugin) Serve() chan error { -- cgit v1.2.3