From 5e83287890e1d18a913dea04c685966a30689866 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 25 Oct 2016 20:00:09 +1100 Subject: [PATCH] storage: ClientImpl interface now includes Close This is now necessary because bolt doesn't allow multiple DB handles, so the bolt piece completion DB instance must be at the client level. The new method is not currently used from the Client however, this maybe necessary to avoid leaks. --- storage/interface.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/interface.go b/storage/interface.go index 982b8eed..80182c96 100644 --- a/storage/interface.go +++ b/storage/interface.go @@ -9,6 +9,7 @@ import ( // Represents data storage for an unspecified torrent. type ClientImpl interface { OpenTorrent(info *metainfo.Info, infoHash metainfo.Hash) (TorrentImpl, error) + Close() error } // Data storage bound to a torrent. -- 2.50.0