1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

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");
}
});
}