diff options
author | Wolfy-J <[email protected]> | 2018-06-13 22:13:12 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-13 22:13:12 +0300 |
commit | 376547add61b3900711d33f6a20f395f7d1f4aea (patch) | |
tree | 15f3c133a896ec042934611f20a7f9598cace8f3 /service/http/service.go | |
parent | 426d0034ea8c07b9303b82275934c35db77398ed (diff) |
more tests
Diffstat (limited to 'service/http/service.go')
-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 dd3888d0..1823df53 100644 --- a/service/http/service.go +++ b/service/http/service.go @@ -40,6 +40,7 @@ func (s *Service) AddListener(l func(event int, ctx interface{})) { // misconfiguration. Services must not be used without proper configuration pushed first. func (s *Service) Init(cfg service.Config, c service.Container) (bool, error) { config := &Config{} + if err := cfg.Unmarshal(config); err != nil { return false, err } |