mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-08 13:19:08 -07:00
Put the query package into http, since it is for http only
This commit is contained in:
@@ -45,7 +45,7 @@ func makeHandler(handler ResponseHandler) httprouter.Handle {
|
||||
}
|
||||
}
|
||||
|
||||
func NewRouter(s *Server) *httprouter.Router {
|
||||
func newRouter(s *Server) *httprouter.Router {
|
||||
r := httprouter.New()
|
||||
|
||||
if s.config.Private {
|
||||
@@ -79,5 +79,5 @@ func Serve(cfg *config.Config, tkr *tracker.Tracker) {
|
||||
}
|
||||
|
||||
glog.V(0).Info("Starting on ", cfg.Addr)
|
||||
graceful.Run(cfg.Addr, cfg.RequestTimeout.Duration, NewRouter(srv))
|
||||
graceful.Run(cfg.Addr, cfg.RequestTimeout.Duration, newRouter(srv))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user