From fc7f7f7ac17ef0838bbdfd578b4e17821b287aee Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sat, 8 Sep 2018 00:01:03 +0300 Subject: added support for logger in DI --- service/rpc/service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'service/rpc/service.go') 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 -- cgit v1.2.3