Skip to content

Commit 9ea18f7

Browse files
committed
Merge branch 'master' into v2
2 parents ca1bea1 + 2b517b7 commit 9ea18f7

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@imqueue/rpc",
3-
"version": "1.17.0",
3+
"version": "1.17.1",
44
"description": "RPC-like client-service implementation over messaging queue",
55
"keywords": [
66
"redis",

src/IMQLock.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,17 @@ export class IMQLock {
118118
if (IMQLock.deadlockTimeout) {
119119
// avoid dead-locks using timeouts
120120
timer = setTimeout(() => {
121+
let dumpStr = '';
122+
123+
try {
124+
dumpStr = JSON.stringify(IMQLock.metadata[key]);
125+
} catch (err) {
126+
dumpStr = 'Unable to stringify metadata';
127+
}
128+
121129
const err = new Error(`Lock timeout, "${
122130
key
123-
}" call rejected, metadata: ${
124-
JSON.stringify(IMQLock.metadata[key])
125-
}`);
131+
}" call rejected, metadata: ${ dumpStr }`);
126132

127133
clearTimeout(timer);
128134
timer = null;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy