kafka-ts 1.1.2-beta.1 → 1.1.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/utils/lock.js +1 -1
- package/package.json +1 -1
package/dist/utils/lock.js
CHANGED
|
@@ -26,7 +26,7 @@ class Lock extends events_1.default {
|
|
|
26
26
|
await new Promise((resolve) => {
|
|
27
27
|
const timeout = setTimeout(() => {
|
|
28
28
|
logger_1.log.warn(`Lock timed out`, { key });
|
|
29
|
-
this.
|
|
29
|
+
this.releaseKey(key);
|
|
30
30
|
}, 10_000);
|
|
31
31
|
this.once(`release:${key}`, () => {
|
|
32
32
|
clearTimeout(timeout);
|