@clonegod/ttd-sui-common 1.0.94 → 1.0.95
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.
|
@@ -96,11 +96,10 @@ class SimpleRedisClient {
|
|
|
96
96
|
if (acquired) {
|
|
97
97
|
const release_delay = parseInt(process.env.NONCE_LOCK_RELEASE_DELAY_MS || String(release_lock_delay_ms));
|
|
98
98
|
if (release_delay > 0) {
|
|
99
|
-
(0, dist_1.log_warn)(`withLock release_lock_delay_ms=${release_delay}ms`);
|
|
100
99
|
yield (0, dist_1.sleep)(release_delay);
|
|
101
100
|
}
|
|
102
101
|
yield this.releaseLock(lock_key, lock_value);
|
|
103
|
-
(0, dist_1.log_info)(`withLock success: lock_key=${lock_key}, retry_times=${retries}, hold_lock=${Date.now() - lock_acquired_time}ms`);
|
|
102
|
+
(0, dist_1.log_info)(`withLock success: lock_key=${lock_key}, retry_times=${retries}, release_lock_delay=${release_delay}ms, hold_lock=${Date.now() - lock_acquired_time}ms`);
|
|
104
103
|
}
|
|
105
104
|
else {
|
|
106
105
|
(0, dist_1.log_warn)(`withLock failed: lock_key=${lock_key}, retry_times=${retries}, total_time=${Date.now() - lock_start_time}ms`);
|