Skip to content

Commit

Permalink
Tidying source:
Browse files Browse the repository at this point in the history
1. Removal of commented lines (noted by Ivan)
2. Renaming messaging/client.go -> messaging/factory.go
(because messaging.Client was already renamed into MsgFactory)
  • Loading branch information
ayuryshev committed May 31, 2019
1 parent 0b6ebd5 commit 80f6226
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/messaging/client.go → pkg/messaging/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type clientLink struct {
chans *chanList
}

// Config configures Client.
// Config configures MsgFactory
type Config struct {
PubKey cipher.PubKey
SecKey cipher.SecKey
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 2 additions & 4 deletions pkg/transport/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@ func NewManager(config *ManagerConfig, factories ...Factory) (*Manager, error) {
factories: fMap,
transports: make(map[uuid.UUID]*ManagedTransport),
entries: mEntries,
// AcceptedTrChan: make(chan *ManagedTransport, 10),
// DialedTrChan: make(chan *ManagedTransport, 10),
TrChan: make(chan *ManagedTransport, 9), //IDK why it was 10 before
doneChan: make(chan struct{}),
TrChan: make(chan *ManagedTransport, 9), // TODO: eliminate or justify buffering here
doneChan: make(chan struct{}),
}, nil
}

Expand Down

0 comments on commit 80f6226

Please sign in to comment.