Skip to content

Commit 8b047a8

Browse files
committed
fix codes
1 parent e21a69a commit 8b047a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mcpproxy/command.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func startMCPProxy(ctx *cli.Context, mcpProfile *McpProfile, regionType RegionTy
115115
manager := NewOAuthCallbackManager()
116116

117117
proxy := NewMCPProxy(host, port, regionType, mcpProfile, servers, manager)
118-
go proxy.Refresher.Start()
118+
go proxy.TokenRefresher.Start()
119119

120120
printProxyInfo(ctx, proxy)
121121

@@ -136,8 +136,8 @@ func startMCPProxy(ctx *cli.Context, mcpProfile *McpProfile, regionType RegionTy
136136
case sig := <-sigChan:
137137
cli.Printf(ctx.Stdout(), "\nReceived signal: %v, shutting down gracefully...\n", sig)
138138
// 停止 token refresher
139-
if proxy.Refresher != nil {
140-
proxy.Refresher.Stop()
139+
if proxy.TokenRefresher != nil {
140+
proxy.TokenRefresher.Stop()
141141
}
142142
// 停止代理服务器
143143
if err := proxy.Stop(); err != nil {

0 commit comments

Comments
 (0)