Skip to content

Commit d9a29cd

Browse files
committed
fix config issue
1 parent c992157 commit d9a29cd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

coordinator/internal/config/proxy_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type UpStream struct {
4646
type ProxyConfig struct {
4747
ProxyManager *ProxyManager `json:"proxy_manager"`
4848
ProxyName string `json:"proxy_name"`
49-
Coordinators map[string]*UpStream `json:"coondiators"`
49+
Coordinators map[string]*UpStream `json:"coordinators"`
5050
}
5151

5252
// NewConfig returns a new instance of Config.

coordinator/internal/controller/proxy/prover_session.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func (c *proverSession) maintainLogin(ctx context.Context, cliMgr Client, up str
8686

8787
if phase < curPhase {
8888
// outdate login phase, give up
89+
log.Debug("drop outdated proxy login attemp", "upstream", up, "cli", param.Message.ProverName, "phase", phase, "now", curPhase)
8990
defer c.Unlock()
9091
return c.proverToken[up].LoginSchema, nil
9192
}
@@ -147,6 +148,7 @@ func (c *proverSession) maintainLogin(ctx context.Context, cliMgr Client, up str
147148
return nil, err
148149
}
149150

151+
log.Debug("Proxy login done", "upstream", up, "cli", param.Message.ProverName)
150152
return &types.LoginSchema{
151153
Token: loginResult.Token,
152154
}, nil

0 commit comments

Comments
 (0)