storage: Export NewSqlitePieceCompletion
This commit is contained in:
parent
d5e2d7ce99
commit
e686523178
|
@ -17,7 +17,7 @@ type sqlitePieceCompletion struct {
|
|||
|
||||
var _ PieceCompletion = (*sqlitePieceCompletion)(nil)
|
||||
|
||||
func newSqlitePieceCompletion(dir string) (ret *sqlitePieceCompletion, err error) {
|
||||
func NewSqlitePieceCompletion(dir string) (ret *sqlitePieceCompletion, err error) {
|
||||
p := filepath.Join(dir, ".torrent.db")
|
||||
db, err := sql.Open("sqlite3", p)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue