mirror of https://github.com/node-red/node-red.git
Added warning when buffer size grows above 1000 msgs
parent
d37e816cd1
commit
e7266ba2b6
|
@ -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");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue