There was an error while loading. Please reload this page.
1 parent bf71b46 commit fd35b08Copy full SHA for fd35b08
1 file changed
src/storage/mod.rs
@@ -791,11 +791,7 @@ impl StorageEngine {
791
792
// Calculate limit for DB query to ensure we get enough data for offset + limit
793
// We don't pass offset to DB query because we need to merge with buffer first
794
- let db_limit = if let Some(l) = limit {
795
- Some(offset.unwrap_or(0) + l)
796
- } else {
797
- None
798
- };
+ let db_limit = limit.map(|l| offset.unwrap_or(0) + l);
799
800
let db_results = query::execute_query(
801
&self.db,
0 commit comments