From e6865231782ffec586517191eac95e325221b306 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 12 Jan 2018 11:09:33 +1100 Subject: [PATCH] storage: Export NewSqlitePieceCompletion --- storage/sqlitePieceCompletion.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/sqlitePieceCompletion.go b/storage/sqlitePieceCompletion.go index 7efe041e..508b4fa4 100644 --- a/storage/sqlitePieceCompletion.go +++ b/storage/sqlitePieceCompletion.go @@ -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 {