summaryrefslogtreecommitdiff
path: root/service/rpc
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-08 00:01:03 +0300
committerWolfy-J <[email protected]>2018-09-08 00:01:03 +0300
commitfc7f7f7ac17ef0838bbdfd578b4e17821b287aee (patch)
tree71395ed820d9e685baec2875dc68176814834243 /service/rpc
parentbf086da11191848ef3a74602d4c652034357e972 (diff)
added support for logger in DI
Diffstat (limited to 'service/rpc')
-rw-r--r--service/rpc/service.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/rpc/service.go b/service/rpc/service.go
index abeae240..9cd32755 100644
--- a/service/rpc/service.go
+++ b/service/rpc/service.go
@@ -12,9 +12,9 @@ const (
// ID contains default service name.
ID = "rpc"
- // ENV_KEY defines environment key to be used to store information about
+ // RRKey defines environment key to be used to store information about
// rpc server connection.
- ENV_KEY = "RR_RPC"
+ EnvKey = "RR_RPC"
)
// Service is RPC service.
type Service struct {
@@ -35,7 +35,7 @@ func (s *Service) Init(cfg *Config, env env.Environment) (bool, error) {
s.rpc = rpc.NewServer()
if env != nil {
- env.SetEnv(ENV_KEY, cfg.Listen)
+ env.SetEnv(EnvKey, cfg.Listen)
}
return true, nil