summaryrefslogtreecommitdiff
path: root/service/http/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/service.go')
-rw-r--r--service/http/service.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/service/http/service.go b/service/http/service.go
index eb97233d..ad59f887 100644
--- a/service/http/service.go
+++ b/service/http/service.go
@@ -7,13 +7,11 @@ import (
"github.com/spiral/roadrunner/service/env"
"github.com/spiral/roadrunner/service/http/attributes"
"github.com/spiral/roadrunner/service/rpc"
- "github.com/spiral/roadrunner/util"
"golang.org/x/net/http2"
"net/http"
"net/url"
"strings"
"sync"
- "time"
)
const (
@@ -79,9 +77,8 @@ func (s *Service) Serve() error {
s.rr = roadrunner.NewServer(s.cfg.Workers)
s.rr.Listen(s.throw)
- s.handler = &Handler{ft: util.NewFastTime(time.Microsecond), cfg: s.cfg, rr: s.rr}
+ s.handler = &Handler{cfg: s.cfg, rr: s.rr}
s.handler.Listen(s.throw)
- defer s.handler.ft.Stop()
s.http = &http.Server{Addr: s.cfg.Address, Handler: s}