mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-19 22:34:40 +08:00
Removed RaftBindPort config. Raft bind address and port are dynamically assigned on startup instead of configured manually. Replaced memberlist-port configuration with discovery-port.
This commit is contained in:
@@ -33,15 +33,6 @@ func main() {
|
||||
|
||||
ctx := context.WithValue(context.Background(), internal.ContextServerID("ServerID"), conf.ServerID)
|
||||
|
||||
// Default BindAddr if it's not specified
|
||||
if conf.BindAddr == "" {
|
||||
if addr, err := internal.GetIPAddress(); err != nil {
|
||||
log.Fatal(err)
|
||||
} else {
|
||||
conf.BindAddr = addr
|
||||
}
|
||||
}
|
||||
|
||||
cancelCh := make(chan os.Signal, 1)
|
||||
signal.Notify(cancelCh, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)
|
||||
|
||||
|
Reference in New Issue
Block a user