perf: 优化数据看板性能

This commit is contained in:
CaIon committed 2024-01-09 16:20:04 +08:00
1 parent de6fbc014f
commit d15516d633
2 files changed
+6 -5

No files matched your search

+1 -1
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())
}
}