mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-04-23 03:00:50 -04:00
fix config issue
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user