From: Matt Joiner Date: Tue, 25 Oct 2016 09:00:09 +0000 (+1100) Subject: storage: ClientImpl interface now includes Close X-Git-Tag: v1.0.0~546 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=5e83287890e1d18a913dea04c685966a30689866;p=btrtrc.git 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. --- 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.