summaryrefslogtreecommitdiff
path: root/service/http/config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-07 23:26:26 +0300
committerWolfy-J <[email protected]>2018-09-07 23:26:26 +0300
commitcac8bf48bab69ff3468cf7d30ac1c18904885a47 (patch)
tree5ffec205a9b51a933339d535de198a267be0275a /service/http/config.go
parentea97c188a4a74c00b585cb50fa1ed4db7d190e09 (diff)
added ability to alter env values
Diffstat (limited to 'service/http/config.go')
-rw-r--r--service/http/config.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/service/http/config.go b/service/http/config.go
index 20a247fb..3e08c72d 100644
--- a/service/http/config.go
+++ b/service/http/config.go
@@ -10,7 +10,7 @@ import (
// Config configures RoadRunner HTTP server.
type Config struct {
- // Enable enables http svc.
+ // Enable enables http service.
Enable bool
// Address and port to handle as http server.
@@ -32,6 +32,10 @@ func (c *Config) Hydrate(cfg service.Config) error {
return err
}
+ if !c.Enable {
+ return nil
+ }
+
if err := c.Valid(); err != nil {
return err
}