status-im/status-go

View on GitHub
protocol/communities/manager_archive_file.go

Summary

Maintainability
A
1 hr
Test Coverage
C
76%

Method ArchiveFileManager.createHistoryArchiveTorrent has 7 arguments (exceeds 6 allowed). Consider refactoring.
Open

func (m *ArchiveFileManager) createHistoryArchiveTorrent(communityID types.HexBytes, msgs []*types.Message, topics []types.TopicType, startDate time.Time, endDate time.Time, partition time.Duration, encrypt bool) ([]string, error) {
Severity: Major
Found in protocol/communities/manager_archive_file.go - About 35 mins to fix

    Method ArchiveFileManager.CreateHistoryArchiveTorrentFromMessages has 7 arguments (exceeds 6 allowed). Consider refactoring.
    Open

    func (m *ArchiveFileManager) CreateHistoryArchiveTorrentFromMessages(communityID types.HexBytes, messages []*types.Message, topics []types.TopicType, startDate time.Time, endDate time.Time, partition time.Duration, encrypt bool) ([]string, error) {
    Severity: Major
    Found in protocol/communities/manager_archive_file.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status