diff options
author | Wolfy-J <[email protected]> | 2018-09-10 15:11:55 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-10 15:11:55 +0300 |
commit | 5dcbd1fd465956ee377c67f3b5d5a17701af235a (patch) | |
tree | 92a649424717478487e0d9f5a51da8b6584456c0 /service/rpc | |
parent | 6f70e31df4a88b85e576789ebe4fee6b5fc12d86 (diff) |
more tests
Diffstat (limited to 'service/rpc')
-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 |