FedP2P/storage/completion.go

13 lines
265 B
Go
Raw Normal View History

package storage
import "log"
func pieceCompletionForDir(dir string) (ret pieceCompletion) {
ret, err := newDBPieceCompletion(dir)
if err != nil {
log.Printf("couldn't open piece completion db in %q: %s", dir, err)
ret = new(mapPieceCompletion)
}
return
}