Optimize code

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao
2019-01-07 17:51:17 +08:00
parent 6d8dead8ca
commit bd6bab1c0c
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ func serveCmd(br *Broker, w http.ResponseWriter, r *http.Request) {
return
}
token = UniqueId()
token = UniqueId("cmd")
commands[token] = &commandStatus{
t: time.AfterFunc(30*time.Second, func() {