summaryrefslogtreecommitdiff
path: root/service/http/service.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-07-26 16:56:25 +0300
committerWolfy-J <[email protected]>2018-07-26 16:56:25 +0300
commit234995f297c4067f4dfdba305f3b16a90143cf12 (patch)
tree48fca37b44593cfa969e3d55ba1e513576c25647 /service/http/service.go
parent0b170a3094aaa5f353550806ff409d67642225b9 (diff)
handle env errors
Diffstat (limited to 'service/http/service.go')
-rw-r--r--service/http/service.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/service/http/service.go b/service/http/service.go
index a8f99669..9f62f5af 100644
--- a/service/http/service.go
+++ b/service/http/service.go
@@ -61,7 +61,12 @@ func (s *Service) Serve() error {
s.mu.Lock()
if s.env != nil {
- for k, v := range s.env.GetEnv() {
+ values, err := s.env.GetEnv()
+ if err != nil {
+ return err
+ }
+
+ for k, v := range values {
s.cfg.Workers.SetEnv(k, v)
}
}