fix config issue

This commit is contained in:
Ho
2025-10-17 22:26:29 +09:00
parent c992157eb4
commit d9a29cddce
2 changed files with 3 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ type UpStream struct {
type ProxyConfig struct {
ProxyManager *ProxyManager `json:"proxy_manager"`
ProxyName string `json:"proxy_name"`
Coordinators map[string]*UpStream `json:"coondiators"`
Coordinators map[string]*UpStream `json:"coordinators"`
}
// NewConfig returns a new instance of Config.

View File

@@ -86,6 +86,7 @@ func (c *proverSession) maintainLogin(ctx context.Context, cliMgr Client, up str
if phase < curPhase {
// outdate login phase, give up
log.Debug("drop outdated proxy login attemp", "upstream", up, "cli", param.Message.ProverName, "phase", phase, "now", curPhase)
defer c.Unlock()
return c.proverToken[up].LoginSchema, nil
}
@@ -147,6 +148,7 @@ func (c *proverSession) maintainLogin(ctx context.Context, cliMgr Client, up str
return nil, err
}
log.Debug("Proxy login done", "upstream", up, "cli", param.Message.ProverName)
return &types.LoginSchema{
Token: loginResult.Token,
}, nil