perf: 优化数据看板性能

This commit is contained in:
CaIon
2024-01-09 16:20:04 +08:00
parent 75b6327f4f
commit 1618a8c9fc
2 changed files with 6 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ func RecordConsumeLog(ctx context.Context, userId int, channelId int, promptToke
common.LogError(ctx, "failed to record log: "+err.Error())
}
if common.DataExportEnabled {
LogQuotaData(userId, username, modelName, quota, common.GetTimestamp())
go LogQuotaData(userId, username, modelName, quota, common.GetTimestamp())
}
}