13 lines
265 B
Go
13 lines
265 B
Go
|
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
|
||
|
}
|