mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 01:08:07 +00:00
feat: 添加 Lighter 适配器的调试日志功能,优化错误处理和订单簿数据规范化
This commit is contained in:
@@ -61,7 +61,9 @@ export class HttpNonceManager implements LighterNonceManager {
|
||||
async refresh(apiKeyIndex: number): Promise<void> {
|
||||
const nonce = await this.http.getNextNonce(this.accountIndex, apiKeyIndex);
|
||||
// eslint-disable-next-line no-console
|
||||
console.debug("[LighterNonceManager] refresh", { apiKeyIndex, nonce: nonce.toString() });
|
||||
if (process.env.LIGHTER_DEBUG === "1" || process.env.LIGHTER_DEBUG === "true") {
|
||||
console.debug("[LighterNonceManager] refresh", { apiKeyIndex, nonce: nonce.toString() });
|
||||
}
|
||||
this.slots.set(apiKeyIndex, { apiKeyIndex, next: nonce, lastIssued: null });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user