Skip to content
Snippets Groups Projects
Commit 6f726d74 authored by capossele's avatar capossele
Browse files

:construction: WIP

parent f8b7c93a
Branches
Tags
No related merge requests found
...@@ -57,7 +57,7 @@ func start() { ...@@ -57,7 +57,7 @@ func start() {
) )
host := parameter.NodeConfig.GetString(CFG_ADDRESS) host := parameter.NodeConfig.GetString(CFG_ADDRESS)
//localhost := host localhost := host
apPort := strconv.Itoa(parameter.NodeConfig.GetInt(CFG_PORT)) apPort := strconv.Itoa(parameter.NodeConfig.GetInt(CFG_PORT))
gossipPort := strconv.Itoa(parameter.NodeConfig.GetInt(gossip.GOSSIP_PORT)) gossipPort := strconv.Itoa(parameter.NodeConfig.GetInt(gossip.GOSSIP_PORT))
...@@ -72,7 +72,7 @@ func start() { ...@@ -72,7 +72,7 @@ func start() {
defer func() { _ = logger.Sync() }() // ignore the returned error defer func() { _ = logger.Sync() }() // ignore the returned error
addr, err := net.ResolveUDPAddr("udp", host+":"+apPort) addr, err := net.ResolveUDPAddr("udp", localhost+":"+apPort)
if err != nil { if err != nil {
log.Fatalf("ResolveUDPAddr: %v", err) log.Fatalf("ResolveUDPAddr: %v", err)
} }
...@@ -118,7 +118,7 @@ func start() { ...@@ -118,7 +118,7 @@ func start() {
Log: logger.Named("sel"), Log: logger.Named("sel"),
Param: &selection.Parameters{ Param: &selection.Parameters{
SaltLifetime: selection.DefaultSaltLifetime, SaltLifetime: selection.DefaultSaltLifetime,
// RequiredService: []string{"gossip"}, RequiredService: []service.Key{service.GossipKey},
}, },
}) })
handlers = append(handlers, Selection) handlers = append(handlers, Selection)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment