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/http/plugin.go | |
parent | 84c8234ec01ad1d5ea5f0a8c7dbca9a3012bcb2b (diff) |
golangci linters fix
Diffstat (limited to 'plugins/http/plugin.go')
-rw-r--r-- | plugins/http/plugin.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/http/plugin.go b/plugins/http/plugin.go index 8e8957bd..79e8aa94 100644 --- a/plugins/http/plugin.go +++ b/plugins/http/plugin.go @@ -27,8 +27,8 @@ import ( ) const ( - // ID contains default service name. - ServiceName = "http" + // PluginName declares plugin name. + PluginName = "http" // EventInitSSL thrown at moment of https initialization. SSL server passed as context. EventInitSSL = 750 @@ -78,7 +78,7 @@ func (s *Plugin) AddListener(listener util.EventListener) { // misconfiguration. Services must not be used without proper configuration pushed first. func (s *Plugin) Init(cfg config.Configurer, log log.Logger, server factory.Server) error { const op = errors.Op("http Init") - err := cfg.UnmarshalKey(ServiceName, &s.cfg) + err := cfg.UnmarshalKey(PluginName, &s.cfg) if err != nil { return errors.E(op, err) } @@ -287,7 +287,7 @@ func (s *Plugin) Workers() []roadrunner.WorkerBase { } func (s *Plugin) Name() string { - return ServiceName + return PluginName } func (s *Plugin) Reset() error { @@ -298,7 +298,7 @@ func (s *Plugin) Reset() error { s.pool.Destroy(context.Background()) // re-read the config - err := s.configurer.UnmarshalKey(ServiceName, &s.cfg) + err := s.configurer.UnmarshalKey(PluginName, &s.cfg) if err != nil { return errors.E(op, err) } |