Don't ignore error getting mmap piece completion
This commit is contained in:
parent
63993a3dc2
commit
cecd83f966
|
@ -78,7 +78,10 @@ func (me mmapStoragePiece) pieceKey() metainfo.PieceKey {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sp mmapStoragePiece) Completion() Completion {
|
func (sp mmapStoragePiece) Completion() Completion {
|
||||||
c, _ := sp.pc.Get(sp.pieceKey())
|
c, err := sp.pc.Get(sp.pieceKey())
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue