1、修改重连机制

This commit is contained in:
2025-08-18 15:10:37 +08:00
parent 43f6b5dc4f
commit 7adba048c8

View File

@ -414,7 +414,7 @@ func (wm *BinanceWebSocketManager) Stop() {
// 重连机制
func (wm *BinanceWebSocketManager) handleReconnect(ctx context.Context) {
maxRetries := 5 // 最大重试次数
maxRetries := 100 // 最大重试次数
retryCount := 0
for {
@ -455,6 +455,7 @@ func (wm *BinanceWebSocketManager) handleReconnect(ctx context.Context) {
continue
}
retryCount = 0
return
}
}