summaryrefslogtreecommitdiff
path: root/service/rpc/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/rpc/service.go')
-rw-r--r--service/rpc/service.go12
1 files changed, 3 insertions, 9 deletions
diff --git a/service/rpc/service.go b/service/rpc/service.go
index 3ea6c5fc..0b957976 100644
--- a/service/rpc/service.go
+++ b/service/rpc/service.go
@@ -8,14 +8,8 @@ import (
"sync"
)
-const (
- // ID contains default service name.
- ID = "rpc"
-
- // rrKey defines environment key to be used to store information about
- // rpc server connection.
- envKey = "rr_rpc"
-)
+// ID contains default service name.
+const ID = "rpc"
// Service is RPC service.
type Service struct {
@@ -36,7 +30,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("RR_RPC", cfg.Listen)
}
return true, nil