Skip to content

v0.4.0

Choose a tag to compare

@tristanls tristanls released this 26 Oct 01:09
· 49 commits to master since this release

FailOpen lock now accepts trustLocalTime boolean value in its configuration (default: false) that when set to true allows the client to reduce the time it has to wait to acquire a lock. Instead of waiting a full leaseDurationMs on every lock acquisition, the client will calculate Math.max(0, leaseDurationMs - (localTimeMs - lockAcquiredTimeMs)) to determine the wait time.