summaryrefslogtreecommitdiff
path: root/service/http/config.go
diff options
context:
space:
mode:
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
}