测试
This commit is contained in:
parent
83ccfab5c7
commit
14ad5f7a50
|
@ -261,14 +261,14 @@ func (nc *NetCard) runWrite() {
|
||||||
log.Printf("get wframes bytes len: %d", len(wframe))
|
log.Printf("get wframes bytes len: %d", len(wframe))
|
||||||
var buf = bytes.NewBuffer(wframe)
|
var buf = bytes.NewBuffer(wframe)
|
||||||
|
|
||||||
zdec, err := zstd.NewReader(buf)
|
dec := gob.NewDecoder(buf)
|
||||||
|
var bufs [][]byte
|
||||||
|
err := dec.Decode(&bufs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
dec := gob.NewDecoder(buf)
|
zdec, err := zstd.NewReader(buf)
|
||||||
var bufs [][]byte
|
|
||||||
err = dec.Decode(&bufs)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user