fix: comments

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-11-03 15:28:04 +01:00
parent 9bae0fb2db
commit 310a867cfa
8 changed files with 643 additions and 231 deletions

View File

@@ -49,7 +49,7 @@ export class ProfileBuffer extends BaseBuffer {
profileId: profile.id,
projectId: profile.project_id,
});
return (await getRedisCache().exists(cacheKey)) === 1;
return (await this.redis.exists(cacheKey)) === 1;
}
async add(profile: IClickhouseProfile, isFromEvent = false) {
@@ -153,7 +153,7 @@ export class ProfileBuffer extends BaseBuffer {
profileId,
projectId,
});
const existingProfile = await getRedisCache().get(cacheKey);
const existingProfile = await this.redis.get(cacheKey);
if (!existingProfile) {
return null;
}

View File

@@ -212,7 +212,7 @@ export class SessionBuffer extends BaseBuffer {
};
});
for (const chunk of this.chunks(sessions, 1000)) {
for (const chunk of this.chunks(sessions, this.chunkSize)) {
// Insert to ClickHouse
await ch.insert({
table: TABLE_NAMES.sessions,