diff options
author | Wolfy-J <[email protected]> | 2019-05-02 22:34:08 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-02 22:34:08 +0300 |
commit | 788fd35e2e186eff1c7a7ac71cdbb3ac557ddfd6 (patch) | |
tree | cbe9e697fcacb658bf1f53fdbba3b1268ae5bd51 /service | |
parent | 658254359597aa85fa4679abd821dd06855b61e9 (diff) |
embedding env variables to config
Diffstat (limited to 'service')
-rw-r--r-- | service/http/service.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/service/http/service.go b/service/http/service.go index ad59f887..6e4542bf 100644 --- a/service/http/service.go +++ b/service/http/service.go @@ -53,6 +53,7 @@ func (s *Service) AddListener(l func(event int, ctx interface{})) { func (s *Service) Init(cfg *Config, r *rpc.Service, e env.Environment) (bool, error) { s.cfg = cfg s.env = e + if r != nil { if err := r.Register(ID, &rpcServer{s}); err != nil { return false, err |