storage: Export NewSqlitePieceCompletion

This commit is contained in:
Matt Joiner 2018-01-12 11:09:33 +11:00
parent d5e2d7ce99
commit e686523178
1 changed files with 1 additions and 1 deletions

View File

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