mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 15:51:01 +00:00
cleanup
This commit is contained in:
parent
ad1c3ff3fb
commit
9b635068d9
2 changed files with 0 additions and 11 deletions
|
|
@ -662,14 +662,6 @@ func TestCluster_GossipMembership(t *testing.T) {
|
|||
eg.Go(func() error {
|
||||
// Pass invalid seed as first in list
|
||||
m2.Config.Gossip.Seeds = []string{seed, "http://localhost:8765"}
|
||||
/*
|
||||
err := port.GetPorts(func(lsns []*net.TCPListener) error {
|
||||
_ = lsns[0].Close()
|
||||
p = lsns[0].Addr().(*net.TCPAddr).Port
|
||||
m2.Config.Gossip.Port = fmt.Sprintf("%d", p)
|
||||
return m2.Start()
|
||||
}, 1, 10)
|
||||
*/
|
||||
err := port.GetPort(func(p int) error {
|
||||
m2.Config.Gossip.Port = fmt.Sprintf("%d", p)
|
||||
return m2.Start()
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ import (
|
|||
"github.com/pilosa/pilosa/v2/etcd"
|
||||
"github.com/pilosa/pilosa/v2/gossip"
|
||||
"github.com/pilosa/pilosa/v2/server"
|
||||
//"github.com/pilosa/pilosa/v2/test/port"
|
||||
)
|
||||
|
||||
type Ports struct {
|
||||
|
|
@ -55,9 +54,7 @@ func GenPortsConfig(ports []Ports) []*server.Config {
|
|||
name := fmt.Sprintf("server%d", i)
|
||||
|
||||
lsnC, portC := ports[i].LsnC, ports[i].PortC
|
||||
//lsnC, portC := port.MustGetBoundTCPListener()
|
||||
lClientURL := fmt.Sprintf("http://localhost:%d", portC)
|
||||
//lsnP, portP := port.MustGetBoundTCPListener()
|
||||
lsnP, portP := ports[i].LsnP, ports[i].PortP
|
||||
lPeerURL := fmt.Sprintf("http://localhost:%d", portP)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue