Log the type for a rare DHT crash
This commit is contained in:
parent
6d2f1c8cd7
commit
b1da5d0656
|
@ -796,7 +796,8 @@ func extractValues(m Msg) (vs []util.CompactPeer) {
|
|||
}
|
||||
vl, ok := v.([]interface{})
|
||||
if !ok {
|
||||
panic(v)
|
||||
log.Printf("unexpected krpc values type: %T", v)
|
||||
return
|
||||
}
|
||||
vs = make([]util.CompactPeer, 0, len(vl))
|
||||
for _, i := range vl {
|
||||
|
|
Loading…
Reference in New Issue