brainix / pottery

Redis for humans. 🌎🌍🌏
Apache License 2.0
1.08k stars 57 forks source link

In Redlock, consistently measure time in seconds #627

Closed brainix closed 2 years ago

brainix commented 2 years ago

Prior to this PR:

  1. timeout was in seconds
  2. .locked() returned milliseconds
  3. auto_release_time was in milliseconds
  4. RETRY_DELAY was in milliseconds

As of this PR:

  1. timeout is in seconds
  2. .locked() returns seconds
  3. auto_release_time is in seconds
  4. _RETRY_DELAY is in seconds
brainix commented 2 years ago

🐟