diff options
author | ChenQuan <terasum@163.com> | 2018-06-04 16:03:48 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-04 10:03:48 +0200 |
commit | 71d789198bb07f78776aebee44c4c4be811650df (patch) | |
tree | b0d1bac14837a2518bfd8b44f0149c8fbb608d44 | |
parent | 8e211ea68566b35701d5b6ab90408638db09d8fd (diff) |
Use check() (#111)
-rw-r--r-- | dispatch.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dispatch.go b/dispatch.go index a5728ad81..373d30666 100644 --- a/dispatch.go +++ b/dispatch.go @@ -88,9 +88,7 @@ func DispatchLoop() { select { case msg := <-resChan: out, err := proto.Marshal(msg) - if err != nil { - panic(err) - } + check(err) err = worker.SendBytes(out) stats.v8workerSend++ stats.v8workerBytesSent += len(out) |