We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3267f1e commit 96dcf3dCopy full SHA for 96dcf3d
src/cmap/worker.rs
@@ -181,7 +181,9 @@ impl ConnectionPoolWorker {
181
.as_ref()
182
.and_then(|opts| opts.background_thread_interval)
183
.map(|i| match i {
184
- BackgroundThreadInterval::Never => Duration::MAX,
+ // One year is long enough to count as never for tests, but not so long that it
185
+ // will overflow interval math.
186
+ BackgroundThreadInterval::Never => Duration::from_secs(31_556_952),
187
BackgroundThreadInterval::Every(d) => d,
188
})
189
.unwrap_or(MAINTENACE_FREQUENCY);
0 commit comments