@clonegod/ttd-sui-common 1.0.46 → 1.0.47

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.
@@ -94,16 +94,15 @@ class SimpleRedisClient {
94
94
  }
95
95
  finally {
96
96
  if (acquired) {
97
- (0, dist_1.log_info)('start release lock');
98
97
  const release_delay = parseInt(process.env.NONCE_LOCK_RELEASE_DELAY_MS || String(release_lock_delay_ms));
99
98
  if (release_delay > 0) {
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 + 1}, get_lock=${lock_acquired_time - lock_start_time}ms, hold_lock=${Date.now() - lock_acquired_time}ms`);
102
+ (0, dist_1.log_info)(`withLock success: lock_key=${lock_key}, retry_times=${retries}, hold_lock=${Date.now() - lock_acquired_time}ms`);
104
103
  }
105
104
  else {
106
- (0, dist_1.log_warn)(`withLock failed: lock_key=${lock_key}, retry_times=${retries + 1}, total_time=${Date.now() - lock_start_time}ms`);
105
+ (0, dist_1.log_warn)(`withLock failed: lock_key=${lock_key}, retry_times=${retries}, total_time=${Date.now() - lock_start_time}ms`);
107
106
  }
108
107
  }
109
108
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sui-common",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "description": "Sui common library",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",