测试
This commit is contained in:
parent
36c4f0edc2
commit
ba3d6a6799
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user