chore(no-torrent)_: Renamed torrent files to archive
This commit is contained in:
parent
896d9c0e24
commit
e87d63693d
|
@ -76,7 +76,7 @@ type ArchiveManager struct {
|
||||||
// NewArchiveManager this function is only built and called when the "disable_torrent" build tag is not set
|
// NewArchiveManager this function is only built and called when the "disable_torrent" build tag is not set
|
||||||
// In this case this version of NewArchiveManager will return the full Desktop ArchiveManager ensuring that the
|
// In this case this version of NewArchiveManager will return the full Desktop ArchiveManager ensuring that the
|
||||||
// build command will import and build the torrent deps for the Desktop OSes.
|
// build command will import and build the torrent deps for the Desktop OSes.
|
||||||
// NOTE: It is intentional that this file contains the identical function name as in "manager_torrent_mobile.go"
|
// NOTE: It is intentional that this file contains the identical function name as in "manager_archive_nop.go"
|
||||||
func NewArchiveManager(torrentConfig *params.TorrentConfig, logger *zap.Logger, persistence *Persistence, transport *transport.Transport, identity *ecdsa.PrivateKey, encryptor *encryption.Protocol, publisher Publisher) *ArchiveManager {
|
func NewArchiveManager(torrentConfig *params.TorrentConfig, logger *zap.Logger, persistence *Persistence, transport *transport.Transport, identity *ecdsa.PrivateKey, encryptor *encryption.Protocol, publisher Publisher) *ArchiveManager {
|
||||||
return &ArchiveManager{
|
return &ArchiveManager{
|
||||||
torrentConfig: torrentConfig,
|
torrentConfig: torrentConfig,
|
|
@ -22,7 +22,7 @@ type ArchiveManagerNop struct {
|
||||||
// NewArchiveManager this function is only built and called when the "disable_torrent" build tag is set
|
// NewArchiveManager this function is only built and called when the "disable_torrent" build tag is set
|
||||||
// In this case this version of NewArchiveManager will return the mobile "nil" ArchiveManagerNop ensuring that the
|
// In this case this version of NewArchiveManager will return the mobile "nil" ArchiveManagerNop ensuring that the
|
||||||
// build command will not import or build the torrent deps for the mobile OS.
|
// build command will not import or build the torrent deps for the mobile OS.
|
||||||
// NOTE: It is intentional that this file contains the identical function name as in "manager_torrent.go"
|
// NOTE: It is intentional that this file contains the identical function name as in "manager_archive.go"
|
||||||
func NewArchiveManager(torrentConfig *params.TorrentConfig, logger *zap.Logger, persistence *Persistence, transport *transport.Transport, identity *ecdsa.PrivateKey, encryptor *encryption.Protocol, publisher Publisher) *ArchiveManagerNop {
|
func NewArchiveManager(torrentConfig *params.TorrentConfig, logger *zap.Logger, persistence *Persistence, transport *transport.Transport, identity *ecdsa.PrivateKey, encryptor *encryption.Protocol, publisher Publisher) *ArchiveManagerNop {
|
||||||
return &ArchiveManagerNop{
|
return &ArchiveManagerNop{
|
||||||
&ArchiveFileManagerNop{},
|
&ArchiveFileManagerNop{},
|
|
@ -498,8 +498,8 @@ func NewMessenger(
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Depending on the OS go will choose whether to use the "communities/manager_torrent_mobile.go" or
|
// Depending on the OS go will choose whether to use the "communities/manager_archive_nop.go" or
|
||||||
// "communities/manager_torrent.go" version of this function based on the build instructions for those files.
|
// "communities/manager_archive.go" version of this function based on the build instructions for those files.
|
||||||
// See those file for more details.
|
// See those file for more details.
|
||||||
torrentManager := communities.NewArchiveManager(c.torrentConfig, logger, communitiesManager.GetPersistence(), transp, identity, encryptionProtocol, communitiesManager)
|
torrentManager := communities.NewArchiveManager(c.torrentConfig, logger, communitiesManager.GetPersistence(), transp, identity, encryptionProtocol, communitiesManager)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue