8000 clean up GossipSender by rade · Pull Request #1826 · weaveworks/weave · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

clean up GossipSender #1826

Merged
merged 4 commits into from
Jan 5, 2016
Merged

clean up GossipSender #1826

merged 4 commits into from
Jan 5, 2016

Conversation

rade
Copy link
Member
@rade rade commented Dec 23, 2015

See commits for explanation.

@rade rade force-pushed the cleaner-gossip-sender branch 5 times, most recently from 5f240ee to dc1ebb0 Compare December 24, 2015 14:26
@rade rade force-pushed the cleaner-gossip-sender branch from dc1ebb0 to 9702faf Compare December 24, 2015 22:13
rade added 3 commits December 30, 2015 12:09
In particular don't require Send() to be serialised by the caller.

We split up the triple(!) purpose 'cell' channel into:

1) a 'cell' member, holding pending GossipData or nil
2) a 'more' channel, for signalling that 'cell' has been filled
3) a 'stop' channel, for requesting termination
which has a very narrow purpose, and can use 'defer' to release the
lock, which is nice.
@rade rade force-pushed the cleaner-gossip-sender branch from 9702faf to e952021 Compare December 30, 2015 12:10
@bboreham
Copy link
Contributor
bboreham commented Jan 5, 2016

LGTM; has anything come up on this in the 13 days since last update?

bboreham added a commit that referenced this pull request Jan 5, 2016
@bboreham bboreham merged commit 262f891 into master Jan 5, 2016
@awh awh deleted the cleaner-gossip-sender branch January 12, 2016 16:58
@awh awh added this to the 1.5.0 milestone Jan 12, 2016
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.

3 participants
0