From 5c4d96402da5633a490be260384b55fb881d9aa4 Mon Sep 17 00:00:00 2001 From: Bora Alper Date: Sat, 3 Mar 2018 17:11:13 +0000 Subject: [PATCH] removed `enableFTS` arg in MakeDatabase --- pkg/persistence/interface.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/persistence/interface.go b/pkg/persistence/interface.go index 5cec5cb..70a7235 100644 --- a/pkg/persistence/interface.go +++ b/pkg/persistence/interface.go @@ -74,7 +74,7 @@ type TorrentMetadata struct { NFiles uint } -func MakeDatabase(rawURL string, enableFTS bool, logger *zap.Logger) (Database, error) { +func MakeDatabase(rawURL string, logger *zap.Logger) (Database, error) { if logger != nil { zap.ReplaceGlobals(logger) } @@ -86,7 +86,7 @@ func MakeDatabase(rawURL string, enableFTS bool, logger *zap.Logger) (Database, switch url_.Scheme { case "sqlite3": - return makeSqlite3Database(url_, enableFTS) + return makeSqlite3Database(url_) case "postgresql": return nil, fmt.Errorf("postgresql is not yet supported!")