mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
timeout should be an Integer
This commit is contained in:
@@ -60,7 +60,7 @@ public abstract class GenericDAO<T extends AbstractModel> {
|
|||||||
|
|
||||||
protected void setTimeout(JPAQuery<?> query, Duration timeout) {
|
protected void setTimeout(JPAQuery<?> query, Duration timeout) {
|
||||||
if (!timeout.isZero()) {
|
if (!timeout.isZero()) {
|
||||||
query.setHint(SpecHints.HINT_SPEC_QUERY_TIMEOUT, timeout.toMillis());
|
query.setHint(SpecHints.HINT_SPEC_QUERY_TIMEOUT, Math.toIntExact(timeout.toMillis()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user