Fix: struct literal uses unkeyed fields

This commit is contained in:
kayos@tcp.direct 2023-06-13 12:13:51 -07:00
parent 5004123b30
commit 7e4ed7ae82
No known key found for this signature in database
GPG key ID: 4B841471B4BEE979

View file

@ -403,7 +403,7 @@ func (w *watcher) goServe() error {
// TODO: Add standard debug/profiling routes
m.HandleFunc("/", w.handleRoot)
m.Handle("/static/", http.StripPrefix("/static", w.staticFileServer))
m.Handle("/watch", xhttp.HandlerFuncAdapter{w.ms.Log, w.handleWatch})
m.Handle("/watch", xhttp.HandlerFuncAdapter{Log: w.ms.Log, Func: w.handleWatch})
s := xhttp.NewServer(w.ms.Log.Warn, xhttp.Log(w.ms.Log, m))
w.goFunc(func(ctx context.Context) error {