distributed-lock icon indicating copy to clipboard operation
distributed-lock copied to clipboard

About throwing option added in recent PR

Open hsshee opened this issue 1 month ago • 1 comments

I was wondering why line 65 in the code block below is returning null instead of returning the result of the invocation.proceed() call.

https://github.com/alturkovic/distributed-lock/blob/06efe84229b5349c77fd553e3e263014bb5f8765/distributed-lock-core/src/main/java/com/github/alturkovic/lock/advice/LockMethodInterceptor.java#L62-L68

I assumed that the throwing option was added to call the target method rather than throwing a DistributedLockException when there's a problem with redis or a network failure, but seeing that it returns null, I'm wondering if my assumption is wrong.

hsshee avatar May 15 '24 14:05 hsshee