Skip to content

Commit

Permalink
Add name to gossip agent when started from server
Browse files Browse the repository at this point in the history
  • Loading branch information
gdiazlo committed Mar 7, 2019
1 parent b7f8aa4 commit 436be7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ func NewServer(conf *Config) (*Server, error) {
config := gossip.DefaultConfig()
config.BindAddr = conf.GossipAddr
config.Role = member.Server
config.NodeName = conf.NodeID
server.agent, err = gossip.NewAgent(config, nil)
if err != nil {
return nil, err
Expand All @@ -140,7 +141,7 @@ func NewServer(conf *Config) (*Server, error) {
}

// TODO: add queue size to config
server.agentsQueue = make(chan *protocol.Snapshot, 100000)
server.agentsQueue = make(chan *protocol.Snapshot, 2<<16)

// Create sender
server.sender = sender.NewSender(server.agent, sender.DefaultConfig(), server.signer)
Expand Down

0 comments on commit 436be7e

Please sign in to comment.