Skip to content

Commit 8afa5fc

Browse files
committed
chore: enlarge sleep limit to 300s
1 parent dbdeb23 commit 8afa5fc

File tree

1 file changed

+2
-2
lines changed
  • src/query/functions/src/scalars/others

1 file changed

+2
-2
lines changed

src/query/functions/src/scalars/others/sleep.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ impl Function for SleepFunction {
8383
value.as_u64().map(Duration::from_secs).map_err(|_| err())?
8484
};
8585

86-
if duration.gt(&Duration::from_secs(30)) {
86+
if duration.gt(&Duration::from_secs(300)) {
8787
return Err(ErrorCode::BadArguments(format!(
88-
"The maximum sleep time is 30 seconds. Requested: {:?}",
88+
"The maximum sleep time is 300 seconds. Requested: {:?}",
8989
duration
9090
)));
9191
};

0 commit comments

Comments
 (0)