Committed by
Gerrit Code Review
Use default op timeout value for DefaultLeaderElector calls
Change-Id: I086ea91b037c4995bf2bea375911a473182f6551
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -142,6 +142,6 @@ public interface AsyncLeaderElector extends DistributedPrimitive { | ... | @@ -142,6 +142,6 @@ public interface AsyncLeaderElector extends DistributedPrimitive { |
142 | * @return new {@code LeaderElector} instance | 142 | * @return new {@code LeaderElector} instance |
143 | */ | 143 | */ |
144 | default LeaderElector asLeaderElector() { | 144 | default LeaderElector asLeaderElector() { |
145 | - return asLeaderElector(Long.MAX_VALUE); | 145 | + return asLeaderElector(DistributedPrimitive.DEFAULT_OPERTATION_TIMEOUT_MILLIS); |
146 | } | 146 | } |
147 | } | 147 | } | ... | ... |
-
Please register or login to post a comment