Put the query package into http, since it is for http only

This commit is contained in:
Justin Li
2014-07-17 01:00:26 -04:00
parent 343b3358a1
commit 3ad3f11b2c
5 changed files with 4 additions and 4 deletions

View File

@@ -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))
}