This commit is contained in:
黄思敏 2022-08-30 11:32:11 +08:00
parent 83ccfab5c7
commit 14ad5f7a50

View File

@ -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)
} }