summaryrefslogtreecommitdiff
path: root/service/static
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-13 22:24:47 +0300
committerWolfy-J <[email protected]>2018-06-13 22:24:47 +0300
commitdf4c11fb59b8ffca369f14eededda82884ee4dad (patch)
treec59b4af544cf11008739313a54b878cc20db793d /service/static
parent235adef3eef67888e4c391b28cedadfb3f8874e3 (diff)
more tests + rpc tests
Diffstat (limited to 'service/static')
-rw-r--r--service/static/service.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/static/service.go b/service/static/service.go
index 8d383fcf..1631f610 100644
--- a/service/static/service.go
+++ b/service/static/service.go
@@ -8,8 +8,8 @@ import (
"github.com/spiral/roadrunner/service"
)
-// Name contains default service name.
-const Name = "static"
+// ID contains default service name.
+const ID = "static"
// Service serves static files. Potentially convert into middleware?
type Service struct {
@@ -40,7 +40,7 @@ func (s *Service) Init(cfg service.Config, c service.Container) (enabled bool, e
s.root = http.Dir(s.cfg.Dir)
// registering as middleware
- if h, ok := c.Get(rrttp.Name); ok >= service.StatusConfigured {
+ if h, ok := c.Get(rrttp.ID); ok >= service.StatusConfigured {
if h, ok := h.(*rrttp.Service); ok {
h.AddMiddleware(s.middleware)
}