Join集群

This commit is contained in:
eson
2023-07-25 19:42:26 +08:00
parent 7200531c27
commit 38375ffdda
2 changed files with 26 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ type ServiceContext struct {
func NewServiceContext(c config.Config) *ServiceContext {
conn := initalize.InitMysql(c.SourceMysql)
StateServer := fsm.StartNode(c.Name, fmt.Sprintf("%s:%d", c.Host, c.Port-2000), conn)
StateServer := fsm.StartNode(c.Name, fmt.Sprintf("localhost:%d", c.Port-2001), conn)
return &ServiceContext{
Config: c,