Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

fix(db): change buffer lock interval

Carl-Gerhard Lindesvärd13a83155cf11
diff --git a/packages/db/src/buffers/buffer.ts b/packages/db/src/buffers/buffer.ts
index 908c3284c..de3299bef 100644
--- a/packages/db/src/buffers/buffer.ts
+++ b/packages/db/src/buffers/buffer.ts
@@ -76,7 +76,7 @@ export class RedisBuffer<T> {
protected async waitForReleasedLock(
maxWaitTime = 8000,
- checkInterval = 500,
+ checkInterval = 250,
): Promise<boolean> {
const startTime = performance.now();