Skip to content

Commit 67ac475

Browse files
authored
Merge pull request #1344 from iyashu/fix-reflector-timeout
reflector: fix watch timeout by using it as seconds unit
2 parents f6c783d + 991cd8e commit 67ac475

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)