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/rpc | |
parent | 84c8234ec01ad1d5ea5f0a8c7dbca9a3012bcb2b (diff) |
golangci linters fix
Diffstat (limited to 'plugins/rpc')
-rwxr-xr-x | plugins/rpc/plugin.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/rpc/plugin.go b/plugins/rpc/plugin.go index 82b30563..24624d91 100755 --- a/plugins/rpc/plugin.go +++ b/plugins/rpc/plugin.go @@ -13,8 +13,8 @@ import ( "github.com/spiral/roadrunner/v2/plugins/config" ) -// ServiceName contains default service name. -const ServiceName = "RPC" +// PluginName contains default plugin name. +const PluginName = "RPC" type pluggable struct { service rpc_.RPCer @@ -34,11 +34,11 @@ type Plugin struct { // Init rpc service. Must return true if service is enabled. func (s *Plugin) Init(cfg config.Configurer, log log.Logger) error { const op = errors.Op("RPC Init") - if !cfg.Has(ServiceName) { + if !cfg.Has(PluginName) { return errors.E(op, errors.Disabled) } - err := cfg.UnmarshalKey(ServiceName, &s.cfg) + err := cfg.UnmarshalKey(PluginName, &s.cfg) if err != nil { return err } @@ -120,7 +120,7 @@ func (s *Plugin) Stop() error { // Name contains service name. func (s *Plugin) Name() string { - return ServiceName + return PluginName } // Depends declares services to collect for RPC. |