diff options
author | Wolfy-J <[email protected]> | 2018-09-07 23:26:26 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-07 23:26:26 +0300 |
commit | cac8bf48bab69ff3468cf7d30ac1c18904885a47 (patch) | |
tree | 5ffec205a9b51a933339d535de198a267be0275a /service/http/config.go | |
parent | ea97c188a4a74c00b585cb50fa1ed4db7d190e09 (diff) |
added ability to alter env values
Diffstat (limited to 'service/http/config.go')
-rw-r--r-- | service/http/config.go | 6 |
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 } |