Skip to content

Commit 991cd8e

Browse files
committed
reflector: fix watch timeout by using it as seconds unit
1 parent 060ed0d commit 991cd8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/src/main/java/io/kubernetes/client/informer/cache/ReflectorRunnable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void run() {
103103
new CallGeneratorParams(
104104
Boolean.TRUE,
105105
lastSyncResourceVersion,
106-
Long.valueOf(Duration.ofMinutes(5).toMillis()).intValue()));
106+
Long.valueOf(Duration.ofMinutes(5).getSeconds()).intValue()));
107107

108108
synchronized (this) {
109109
if (!isActive.get()) {

0 commit comments

Comments
 (0)