You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@aashishkapur thanks for the report. I suspect the code is working fine. I just reviewed the tests here, and they do seem to validate Get(). Could you provide a piece of code that proves the problem?
Hi,
I was trying to get the contents of a lock without acquiring the lock, but found that when I tried to get the lock,
I received a lock with no data.
I looked into
Get
, and found that this branch was getting executed: https://github.com/cirello-io/dynamolock/blob/master/client.go#L906, because the lock is currently not held. Therefore, an empty lock is returned, with no data.I'm happy to make a PR to fix this by removing the
lockItem.isReleased
check, but wanted to confirm.The text was updated successfully, but these errors were encountered: