Keep track of output writer in hash monitoring functions

This commit is contained in:
Kleissner
2022-01-13 02:09:00 +01:00
parent 58cb870116
commit 75b5339095
4 changed files with 96 additions and 75 deletions

2
API.go
View File

@@ -121,7 +121,7 @@ func apiConsole(backend *core.Backend) func(w http.ResponseWriter, r *http.Reque
countRead, err := bufferW.Read(bufferW2)
if err != nil || countRead == 0 {
time.Sleep(250 * time.Millisecond)
time.Sleep(50 * time.Millisecond)
continue
}