summaryrefslogtreecommitdiff
path: root/service/rpc
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-30 17:58:16 +0300
committerWolfy-J <[email protected]>2018-09-30 17:58:16 +0300
commit734fab795eb5ee396ee76955c9ddadc4f3b09112 (patch)
treecec3a313fe207c3f91cd142d6d37202ef4db9494 /service/rpc
parent6122fca108c20984732c969fb1ba53cce5b3c44a (diff)
https and http2 support
Diffstat (limited to 'service/rpc')
-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