Skip to content

Commit 652d163

Browse files
committed
Fixed type cast issue
1 parent b62e10b commit 652d163

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/core-services/src/main/java/ai/wanaku/core/services/provider/AbstractResourceDelegate.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private int waitAndRetry(String service, Exception e, int retries) {
159159
}
160160
try {
161161
int waitSeconds = config.registerRetryWaitSeconds();
162-
Thread.sleep(waitSeconds * 1000);
162+
Thread.sleep(waitSeconds * 1000L);
163163
} catch (InterruptedException ex) {
164164
throw new RuntimeException(ex);
165165
}

core/core-services/src/main/java/ai/wanaku/core/services/routing/AbstractRoutingDelegate.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private int waitAndRetry(String service, Exception e, int retries) {
108108
}
109109
try {
110110
int waitSeconds = config.registerRetryWaitSeconds();
111-
Thread.sleep(waitSeconds * 1000);
111+
Thread.sleep(waitSeconds * 1000L);
112112
} catch (InterruptedException ex) {
113113
throw new RuntimeException(ex);
114114
}

0 commit comments

Comments
 (0)