status-im/status-go

View on GitHub
protocol/transport/transport.go

Summary

Maintainability
C
1 day
Test Coverage
C
73%

Transport has 66 methods (exceeds 21 allowed). Consider refactoring.
Open

type Transport struct {
    waku        types.Waku
    api         types.PublicWakuAPI // only PublicWakuAPI implements logic to send messages
    keysManager *transportKeysManager
    filters     *FiltersManager
Severity: Major
Found in protocol/transport/transport.go - About 1 day to fix

    Method Transport.SendMessagesRequestForTopics has 9 arguments (exceeds 6 allowed). Consider refactoring.
    Open

        ctx context.Context,
        peerID peer.ID,
        from, to uint32,
        prevCursor types.StoreRequestCursor,
        pubsubTopic string,
    Severity: Major
    Found in protocol/transport/transport.go - About 50 mins to fix

      Method Transport.createMessagesRequest has 9 arguments (exceeds 6 allowed). Consider refactoring.
      Open

          ctx context.Context,
          peerID peer.ID,
          from, to uint32,
          previousStoreCursor types.StoreRequestCursor,
          pubsubTopic string,
      Severity: Major
      Found in protocol/transport/transport.go - About 50 mins to fix

        Function NewTransport has 8 arguments (exceeds 6 allowed). Consider refactoring.
        Open

            waku types.Waku,
            privateKey *ecdsa.PrivateKey,
            db *sql.DB,
            sqlitePersistenceTableName string,
            mailservers []string,
        Severity: Major
        Found in protocol/transport/transport.go - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status