Skip to content

Commit 68b6c1c

Browse files
committed
remove workerCount logs
Signed-off-by: Matt Krick <[email protected]>
1 parent 4e8b9f2 commit 68b6c1c

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Diff for: packages/server/dataloader/RootDataLoader.ts

-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import DataLoader from 'dataloader'
2-
import {Logger} from '../utils/Logger'
32
import * as atlassianLoaders from './atlassianLoaders'
43
import * as azureDevOpsLoaders from './azureDevOpsLoaders'
54
import * as customLoaderMakers from './customLoaderMakers'
@@ -94,10 +93,3 @@ export default class RootDataLoader<
9493
// RootDataLoader
9594

9695
export const dataLoaderCache = new DataLoaderCache(RootDataLoader)
97-
98-
// Can remove this after we verify there are no memory leaks in prod
99-
// count staying constant or going down = good
100-
setInterval(() => {
101-
const workerCount = Object.keys(dataLoaderCache.workers).length
102-
Logger.log({workerCount})
103-
}, 60_000).unref()

Diff for: packages/server/graphql/private/mutations/disconnectSocket.ts

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ const disconnectSocket: MutationResolvers['disconnectSocket'] = async (
1919
redis.lrange(`presence:${userId}`, 0, -1)
2020
])
2121
if (!user) {
22+
// user could've been deleted & then key not wiped
23+
await redis.del(`presence:${userId}`)
2224
throw new Error(`User does not exist: ${userId}`)
2325
}
2426
const tms = user.tms ?? []

0 commit comments

Comments
 (0)