Added warning when buffer size grows above 1000 msgs

This commit is contained in:
Ben Hardill 2013-10-01 13:18:23 +01:00
parent d37e816cd1
commit e7266ba2b6
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ function RateLimitNode(n) {
this.on("input", function(msg) {
this.buffer.push(msg);
if (this.buffer.length > 1000) {
this.warn(this.name + " buffer exceeded 1000 messages");
}
});
}