Skip to content

Commit 45fe702

Browse files
authored
Merge pull request #7523 from flaneur2020/enlarge-sleep-limit
chore: enlarge SLEEP() limit to 300s
2 parents 3d04ff0 + 0209073 commit 45fe702

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)