fix(grok): avoid blocking first request on usage sync

This commit is contained in:
Ömer Burak Dağlı 2026-03-14 18:12:46 +03:00
parent 90ffd83c78
commit 0969fad37e

View file

@ -155,8 +155,11 @@ export class GrokApiService {
async initialize() {
if (this.isInitialized) return;
try { await this.getUsageLimits(); } catch (error) { logger.warn('[Grok] Initial usage sync failed:', error.message); }
this.isInitialized = true;
this.getUsageLimits()
.catch((error) => {
logger.warn('[Grok] Initial usage sync failed:', error.message);
});
}
async refreshToken() {