perf: 优化数据看板性能

This commit is contained in:
CaIon
2024-01-09 16:20:04 +08:00
parent de6fbc014f
commit d15516d633
2 changed files with 6 additions and 5 deletions
+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())
}
}