diff options
Diffstat (limited to 'service/rpc/service.go')
-rw-r--r-- | service/rpc/service.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/service/rpc/service.go b/service/rpc/service.go index 14e34319..d8c2b9d5 100644 --- a/service/rpc/service.go +++ b/service/rpc/service.go @@ -12,9 +12,9 @@ const ( // ID contains default service name. ID = "rpc" - // RRKey defines environment key to be used to store information about + // rrKey defines environment key to be used to store information about // rpc server connection. - EnvKey = "RR_RPC" + envKey = "rr-rpc" ) // Service is RPC service. @@ -36,7 +36,7 @@ func (s *Service) Init(cfg *Config, env env.Environment) (bool, error) { s.rpc = rpc.NewServer() if env != nil { - env.SetEnv(EnvKey, cfg.Listen) + env.SetEnv(envKey, cfg.Listen) } return true, nil |