This commit is contained in:
eson 2023-08-29 10:31:36 +08:00
parent 59161ddab5
commit c2680da930

View File

@ -29,7 +29,7 @@ type ServiceContext struct {
func NewServiceContext(c config.Config) *ServiceContext {
conn := initalize.InitMysql(c.SourceMysql)
// StateServer := shared.StartNode(c.ReplicaId, autoconfig.AutoGetAllServerConfig(), conn)
registerAddress := fmt.Sprintf("http://%s/api/auth/oauth2/register", c.MainAddress)
registerAddress := fmt.Sprintf("%s/api/auth/oauth2/register", c.MainAddress)
return &ServiceContext{
Config: c,
MysqlConn: conn,