Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Eliminate start methods #997

Merged
merged 8 commits into from
Jun 24, 2015
Merged

Eliminate start methods #997

merged 8 commits into from
Jun 24, 2015

Conversation

dpw
Copy link
Contributor

@dpw dpw commented Jun 24, 2015

Most start methods in the router are trivially redundant. Apart from the redundancy, start methods raise the question of the state of an object prior to the start method being called (i.e. which fields are valid, which methods can be called, etc.). So they should only be used when there is a reason.

(Extracted from #991)

@@ -84,6 +84,9 @@ func NewRouter(config Config, name PeerName, nickName string) *Router {
return router
}

// Start listening for packets from containers, TCP connections and

This comment was marked as abuse.

This comment was marked as abuse.

@rade rade assigned dpw Jun 24, 2015
@rade
Copy link
Member

rade commented Jun 24, 2015

rest looks fine.

@dpw dpw assigned rade and unassigned dpw Jun 24, 2015
rade added a commit that referenced this pull request Jun 24, 2015
Eliminate most Start methods in router package
@rade rade merged commit 76a12ed into weaveworks:master Jun 24, 2015
@rade rade modified the milestone: 1.1.0 Jul 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants