mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
Use check() (#111)
This commit is contained in:
parent
8e211ea685
commit
71d789198b
1 changed files with 1 additions and 3 deletions
|
@ -88,9 +88,7 @@ func DispatchLoop() {
|
||||||
select {
|
select {
|
||||||
case msg := <-resChan:
|
case msg := <-resChan:
|
||||||
out, err := proto.Marshal(msg)
|
out, err := proto.Marshal(msg)
|
||||||
if err != nil {
|
check(err)
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
err = worker.SendBytes(out)
|
err = worker.SendBytes(out)
|
||||||
stats.v8workerSend++
|
stats.v8workerSend++
|
||||||
stats.v8workerBytesSent += len(out)
|
stats.v8workerBytesSent += len(out)
|
||||||
|
|
Loading…
Add table
Reference in a new issue