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:
parent
d37e816cd1
commit
e7266ba2b6
@ -37,6 +37,9 @@ function RateLimitNode(n) {
|
|||||||
|
|
||||||
this.on("input", function(msg) {
|
this.on("input", function(msg) {
|
||||||
this.buffer.push(msg);
|
this.buffer.push(msg);
|
||||||
|
if (this.buffer.length > 1000) {
|
||||||
|
this.warn(this.name + " buffer exceeded 1000 messages");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user