Comparing version 8.4.0 to 8.5.0
CHANGELOG | ||
========= | ||
## 8.5.0 (2021-7-16) | ||
@maxday Add a closingFlushInterval option which allows stopping quicker | ||
## 8.4.0 (2021-7-3) | ||
@@ -5,0 +8,0 @@ @roim Use errorHandler when possible on UDS socket replace error |
@@ -78,2 +78,3 @@ const process = require('process'), | ||
this.isChild = options.isChild; | ||
this.closingFlushInterval = options.closingFlushInterval || 50; | ||
@@ -417,3 +418,3 @@ // If we're mocking the client, create a buffer to record the outgoing calls. | ||
} | ||
}, 50); | ||
}, this.closingFlushInterval); | ||
}); | ||
@@ -493,3 +494,4 @@ }; | ||
telegraf : parent.telegraf, | ||
protocol : parent.protocol | ||
protocol : parent.protocol, | ||
closingFlushInterval : parent.closingFlushInterval | ||
}); | ||
@@ -496,0 +498,0 @@ }; |
{ | ||
"name": "hot-shots", | ||
"description": "Node.js client for StatsD, DogStatsD, and Telegraf", | ||
"version": "8.4.0", | ||
"version": "8.5.0", | ||
"author": "Steve Ivy", | ||
@@ -6,0 +6,0 @@ "types": "./types.d.ts", |
@@ -61,2 +61,3 @@ # hot-shots | ||
* `udsGracefulRestartRateLimit`: Used only when the protocol is `uds`. Time (ms) between re-creating the socket. Defaults to `1000`. | ||
* `closingFlushInterval`: Before closing, StatsD will check for inflight messages. Time (ms) between each check. Defaults to `50`. | ||
@@ -63,0 +64,0 @@ ### StatsD methods |
@@ -30,2 +30,3 @@ import dgram = require("dgram"); | ||
udsGracefulRestartRateLimit?: number; | ||
closingFlushInterval?: number; | ||
} | ||
@@ -32,0 +33,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84749
1559
301