From dcc140b7228225c5cb27c5fe4b5c921312c70cc0 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Thu, 18 Nov 2021 01:51:18 +0800 Subject: [PATCH] fix: file blocked by reporter --- handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.go b/handler.go index 88bd1b0..f3f239f 100644 --- a/handler.go +++ b/handler.go @@ -121,7 +121,7 @@ func (cui *ConfigUI) Apply(w http.ResponseWriter, r *http.Request) { ksrv.Response(w, 404, []byte("file not found")) return } - result, err := file.Do(cui.cmdTimeout, make(chan int)) + result, err := file.Do(cui.cmdTimeout, make(chan int, 1)) if err != nil { panic(err) }