Skip to content

Commit 50f395b

Browse files
committed
remove env
1 parent c823aed commit 50f395b

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

matching-service/.env.dev

Lines changed: 0 additions & 5 deletions
This file was deleted.

matching-service/.env.production

Lines changed: 0 additions & 5 deletions
This file was deleted.

matching-service/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ benchmarks/graphs
1212

1313
# ignore additional files using core.excludesFile
1414
# https://git-scm.com/docs/gitignore
15+
16+
.env.*
17+
/dist

matching-service/src/services/matchingService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const checkMatch = async (key: string): Promise<User | null> => {
3434

3535
/**
3636
* Transfers users from the topic queue to the difficulty queue if they are older than 15 seconds.
37-
* If they are older than 30 seconds in the difficulty queue, they will be removed.
37+
* If they are older than 45 seconds in the difficulty queue, they will be removed.
3838
*/
3939
export const processOldUsers = async (): Promise<void> => {
4040
const allTopics = await redisClient.keys("topic:*");
@@ -115,7 +115,7 @@ export const processNewUser = async (user: User): Promise<void> => {
115115
}
116116
};
117117

118-
// Start background transfer process
118+
// Start background transfer process, polling every 5 sec
119119
export const startBackgroundTransfer = (): void => {
120120
setInterval(async () => {
121121
await processOldUsers();

0 commit comments

Comments
 (0)