Bug fixes, cleanup
This commit is contained in:
@@ -6,8 +6,6 @@ import (
|
||||
"net/http"
|
||||
"vppn/hub/api"
|
||||
"vppn/hub/errs"
|
||||
|
||||
"git.crumpington.com/lib/webutil"
|
||||
)
|
||||
|
||||
type handlerFunc func(s *api.Session, w http.ResponseWriter, r *http.Request) error
|
||||
@@ -75,9 +73,7 @@ func (app *App) handlePeer(pattern string, fn peerHandlerFunc) {
|
||||
}
|
||||
}
|
||||
|
||||
app.mux.HandleFunc(pattern,
|
||||
webutil.WithLogging(
|
||||
wrapped))
|
||||
app.mux.HandleFunc(pattern, withLogging(wrapped))
|
||||
}
|
||||
|
||||
func handleError(w http.ResponseWriter, err error) {
|
||||
|
||||
Reference in New Issue
Block a user