2
0
mirror of synced 2025-02-23 22:28:11 +00:00

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.
This commit is contained in:
Matt Joiner 2016-10-25 20:00:09 +11:00
parent 3814a50fa0
commit 5e83287890

View File

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