This commit is contained in:
黄思敏 2022-08-30 11:47:12 +08:00
parent 36c4f0edc2
commit ba3d6a6799

View File

@ -265,16 +265,15 @@ func (nc *NetCard) runWrite() {
if err != nil { if err != nil {
log.Panic(err) log.Panic(err)
} }
zdec.Close()
dec := gob.NewDecoder(zdec) dec := gob.NewDecoder(buf)
var bufs [][]byte var bufs [][]byte
err = dec.Decode(&bufs) err = dec.Decode(&bufs)
if err != nil { if err != nil {
log.Panic(err) log.Panic(err)
} }
zdec.Close()
for _, buf := range bufs { for _, buf := range bufs {
h := md5.New() h := md5.New()
h.Write(buf) h.Write(buf)