diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-14 17:56:06 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-14 17:56:06 +0800 |
commit | 0512113bdd5cc55ae35abd442b668ab5ed7a116b (patch) | |
tree | 837ab94fb660f06dd3fcb17edf358edcef72b70c /ethwire | |
parent | 7c0df348f86d4ee47111b57b83fb1613e6338e05 (diff) | |
download | go-tangerine-0512113bdd5cc55ae35abd442b668ab5ed7a116b.tar go-tangerine-0512113bdd5cc55ae35abd442b668ab5ed7a116b.tar.gz go-tangerine-0512113bdd5cc55ae35abd442b668ab5ed7a116b.tar.bz2 go-tangerine-0512113bdd5cc55ae35abd442b668ab5ed7a116b.tar.lz go-tangerine-0512113bdd5cc55ae35abd442b668ab5ed7a116b.tar.xz go-tangerine-0512113bdd5cc55ae35abd442b668ab5ed7a116b.tar.zst go-tangerine-0512113bdd5cc55ae35abd442b668ab5ed7a116b.zip |
Removed defer
Diffstat (limited to 'ethwire')
-rw-r--r-- | ethwire/messaging.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ethwire/messaging.go b/ethwire/messaging.go index cc0e7a9a0..cbcbbb8b7 100644 --- a/ethwire/messaging.go +++ b/ethwire/messaging.go @@ -69,12 +69,6 @@ func NewMessage(msgType MsgType, data interface{}) *Msg { } func ReadMessage(data []byte) (msg *Msg, remaining []byte, done bool, err error) { - defer func() { - if r := recover(); r != nil { - panic(fmt.Sprintf("message error %d %v", len(data), data)) - } - }() - if len(data) == 0 { return nil, nil, true, nil } |