mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-11 09:46:37 +08:00
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -53,7 +53,7 @@ func setupOpenFlareAccessLogTestEnvironment(t *testing.T) (context.Context, func
|
|||||||
// 写入入口只入队;测试环境立即 flush,保证后续查询可见。
|
// 写入入口只入队;测试环境立即 flush,保证后续查询可见。
|
||||||
logstore.SetAccessLogHooks(logstore.AccessLogHooks{
|
logstore.SetAccessLogHooks(logstore.AccessLogHooks{
|
||||||
QueueNodeAccessLogs: func(logs []analyticsmodel.NodeAccessLog) {
|
QueueNodeAccessLogs: func(logs []analyticsmodel.NodeAccessLog) {
|
||||||
_ = store.AccessLogs.BatchInsertNodeAccessLogs(context.Background(), logs)
|
require.NoError(t, store.AccessLogs.BatchInsertNodeAccessLogs(context.Background(), logs))
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
return ctx, func() {
|
return ctx, func() {
|
||||||
|
|||||||
Reference in New Issue
Block a user