From 75fd8d1fdcde736e72dfe21d028b75328129bf47 Mon Sep 17 00:00:00 2001 From: yusing Date: Wed, 16 Apr 2025 14:29:45 +0800 Subject: [PATCH] chore: increase websocket interval for debug api --- internal/api/v1/debug/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/v1/debug/handler.go b/internal/api/v1/debug/handler.go index 271ab09..c128b9d 100644 --- a/internal/api/v1/debug/handler.go +++ b/internal/api/v1/debug/handler.go @@ -50,7 +50,7 @@ func jsonHandler[T debuggable](getData iter.Seq2[string, T]) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { gpwebsocket.DynamicJSONHandler(w, r, func() []map[string]any { return toSortedSlice(getData) - }, 1*time.Second) + }, 200*time.Millisecond) } }