From 797ab8bdefedc61201de7444c1b961d0af27ac0b Mon Sep 17 00:00:00 2001 From: jdl Date: Sun, 14 Jun 2026 20:32:46 +0200 Subject: [PATCH] Bug fixes, cleanup --- hub/app.go | 2 +- hub/handler.go | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/hub/app.go b/hub/app.go index c8f5faa..f91ac07 100644 --- a/hub/app.go +++ b/hub/app.go @@ -31,7 +31,7 @@ type App struct { insecure bool // Per-remote address sign-in serialization lock. - signInLock keyedmutex.KeyedMutex[string] + signInLock *keyedmutex.KeyedMutex[string] } func NewApp(conf Config) (*App, error) { diff --git a/hub/handler.go b/hub/handler.go index 3300067..f5a024e 100644 --- a/hub/handler.go +++ b/hub/handler.go @@ -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) {