Bug fixes, cleanup

This commit is contained in:
jdl
2026-06-14 20:32:46 +02:00
parent f765303daf
commit 797ab8bdef
2 changed files with 2 additions and 6 deletions

View File

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