From 6bcf2a58b2576bc976751a0baa380a7e29e1f153 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sat, 6 Jan 2018 16:38:41 +1100 Subject: [PATCH] storage: Rename mmapStorage->mmapClientImpl --- storage/mmap.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/storage/mmap.go b/storage/mmap.go index fbd3f54d..f48a2bcc 100644 --- a/storage/mmap.go +++ b/storage/mmap.go @@ -14,7 +14,7 @@ import ( "github.com/anacrolix/torrent/mmap_span" ) -type mmapStorage struct { +type mmapClientImpl struct { baseDir string pc PieceCompletion } @@ -24,13 +24,13 @@ func NewMMap(baseDir string) ClientImpl { } func NewMMapWithCompletion(baseDir string, completion PieceCompletion) ClientImpl { - return &mmapStorage{ + return &mmapClientImpl{ baseDir: baseDir, pc: completion, } } -func (s *mmapStorage) OpenTorrent(info *metainfo.Info, infoHash metainfo.Hash) (t TorrentImpl, err error) { +func (s *mmapClientImpl) OpenTorrent(info *metainfo.Info, infoHash metainfo.Hash) (t TorrentImpl, err error) { span, err := mMapTorrent(info, s.baseDir) t = &mmapTorrentStorage{ infoHash: infoHash, @@ -40,7 +40,7 @@ func (s *mmapStorage) OpenTorrent(info *metainfo.Info, infoHash metainfo.Hash) ( return } -func (s *mmapStorage) Close() error { +func (s *mmapClientImpl) Close() error { return s.pc.Close() }