Don't ignore error getting mmap piece completion

This commit is contained in:
Matt Joiner 2019-10-11 17:36:46 +11:00
parent 63993a3dc2
commit cecd83f966
1 changed files with 4 additions and 1 deletions

View File

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