From 9bc2b803d16334a170a6b26ef8b8de961634e82f Mon Sep 17 00:00:00 2001 From: cha0s Date: Sat, 18 Jul 2020 17:50:55 -0500 Subject: [PATCH] refactor: expire anon after 1 minute --- src/server/sockets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/sockets.js b/src/server/sockets.js index 85f3261..a6bb275 100644 --- a/src/server/sockets.js +++ b/src/server/sockets.js @@ -106,7 +106,7 @@ export function createSocketServer(httpServer) { socket: socket.id, timestamp, })) - .expire(key, 600) + .expire(key, '/r/anonymous' === channel ? 60 : 600) .exec(() => fn([timestamp, uuid])); } if (packet instanceof Usernames) {