refactor: expire anon after 1 minute

This commit is contained in:
cha0s 2020-07-18 17:50:55 -05:00
parent 369000ad46
commit 9bc2b803d1

View File

@ -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) {