mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 14:54:27 +01:00
fix clippy
This commit is contained in:
parent
c83a33017e
commit
4fb25b8782
@ -1297,8 +1297,13 @@ impl IndexScheduler {
|
|||||||
let task = self
|
let task = self
|
||||||
.index_scheduler
|
.index_scheduler
|
||||||
.get_task(self.rtxn, task_id)
|
.get_task(self.rtxn, task_id)
|
||||||
.map_err(io::Error::other)?
|
.map_err(|err| io::Error::new(io::ErrorKind::Other, err))?
|
||||||
.ok_or_else(|| io::Error::other(Error::CorruptedTaskQueue))?;
|
.ok_or_else(|| {
|
||||||
|
io::Error::new(
|
||||||
|
io::ErrorKind::Other,
|
||||||
|
Error::CorruptedTaskQueue,
|
||||||
|
)
|
||||||
|
})?;
|
||||||
|
|
||||||
serde_json::to_writer(
|
serde_json::to_writer(
|
||||||
&mut self.buffer,
|
&mut self.buffer,
|
||||||
|
@ -70,10 +70,6 @@ const MEILI_MAX_INDEXING_MEMORY: &str = "MEILI_MAX_INDEXING_MEMORY";
|
|||||||
const MEILI_MAX_INDEXING_THREADS: &str = "MEILI_MAX_INDEXING_THREADS";
|
const MEILI_MAX_INDEXING_THREADS: &str = "MEILI_MAX_INDEXING_THREADS";
|
||||||
const DEFAULT_LOG_EVERY_N: usize = 100_000;
|
const DEFAULT_LOG_EVERY_N: usize = 100_000;
|
||||||
|
|
||||||
fn parse_url(s: &str) -> Result<Url, url::ParseError> {
|
|
||||||
Url::parse(s)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Each environment (index and task-db) is taking space in the virtual address space.
|
// Each environment (index and task-db) is taking space in the virtual address space.
|
||||||
// Ideally, indexes can occupy 2TiB each to avoid having to manually resize them.
|
// Ideally, indexes can occupy 2TiB each to avoid having to manually resize them.
|
||||||
// The actual size of the virtual address space is computed at startup to determine how many 2TiB indexes can be
|
// The actual size of the virtual address space is computed at startup to determine how many 2TiB indexes can be
|
||||||
|
Loading…
Reference in New Issue
Block a user