summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChenQuan <terasum@163.com>2018-06-04 16:03:48 +0800
committerRyan Dahl <ry@tinyclouds.org>2018-06-04 10:03:48 +0200
commit71d789198bb07f78776aebee44c4c4be811650df (patch)
treeb0d1bac14837a2518bfd8b44f0149c8fbb608d44
parent8e211ea68566b35701d5b6ab90408638db09d8fd (diff)
Use check() (#111)
-rw-r--r--dispatch.go4
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)