File tree Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,3 +12,6 @@ benchmarks/graphs
12
12
13
13
# ignore additional files using core.excludesFile
14
14
# https://git-scm.com/docs/gitignore
15
+
16
+ .env. *
17
+ /dist
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export const checkMatch = async (key: string): Promise<User | null> => {
34
34
35
35
/**
36
36
* 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.
38
38
*/
39
39
export const processOldUsers = async ( ) : Promise < void > => {
40
40
const allTopics = await redisClient . keys ( "topic:*" ) ;
@@ -115,7 +115,7 @@ export const processNewUser = async (user: User): Promise<void> => {
115
115
}
116
116
} ;
117
117
118
- // Start background transfer process
118
+ // Start background transfer process, polling every 5 sec
119
119
export const startBackgroundTransfer = ( ) : void => {
120
120
setInterval ( async ( ) => {
121
121
await processOldUsers ( ) ;
You can’t perform that action at this time.
0 commit comments