From 7e4ed7ae820a485b4575e83082088ae1c2947649 Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Tue, 13 Jun 2023 12:13:51 -0700 Subject: [PATCH] Fix: struct literal uses unkeyed fields --- d2cli/watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2cli/watch.go b/d2cli/watch.go index 6b1c5412c..047e415d5 100644 --- a/d2cli/watch.go +++ b/d2cli/watch.go @@ -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 {