diff options
author | Valery Piashchynski <[email protected]> | 2020-12-01 17:33:47 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-01 17:33:47 +0300 |
commit | 3805b875c6498a9697c692c010bc022e8ebd50b0 (patch) | |
tree | 00635f6a6e9b1029e302f8e96faa7ab269fb43bd /plugins/server/plugin.go | |
parent | 84c8234ec01ad1d5ea5f0a8c7dbca9a3012bcb2b (diff) |
golangci linters fix
Diffstat (limited to 'plugins/server/plugin.go')
-rw-r--r-- | plugins/server/plugin.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |