mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
GossipNodeSet and GossipBroadcaster had a lot of cross dependency - I made them the same object and had it implement all three interfaces (NodeSet, Broadcaster, BroadcastReceiver). I implmented an HTTPBroadcastReceiver which runs as as separate server. BroadcastReceiver is a separate entity on the pilosa.Server object and is started separately from broadcaster and nodeset. In the case of GossipNodeSet, the broadcast receiver must be started before Open()ing the Nodeset, because it doesn't actually start listening until Open() is called, but it needs the handler set up before then. server/server.go was heavily refactored to configure the new structs and interfaces on the pilosa.Server object. |
||
|---|---|---|
| .. | ||
| server.go | ||
| server_test.go | ||