Skip to content

Commit e4d1dce

Browse files
committed
Increase the queue size to 1000; new users won't miss events
1 parent aaa0961 commit e4d1dce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/public/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ socket.on('github', function (data) {
4040
eventQueue.push(event);
4141
}
4242
});
43-
// Don't let the eventQueue grow more than 100
44-
if (eventQueue.length > 100) eventQueue = eventQueue.slice(0, 100);
43+
// Don't let the eventQueue grow more than 1000
44+
if (eventQueue.length > 1000) eventQueue = eventQueue.slice(0, 1000);
4545
});
4646

4747
socket.on('connect', function(){

0 commit comments

Comments
 (0)