mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-12 14:26:29 +01:00
Use a nonrandom hasher when decoding JSON
This commit is contained in:
parent
93fbdc06d3
commit
01bcc601be
@ -221,7 +221,7 @@ pub fn read_json(input: &File, output: impl io::Write) -> Result<u64> {
|
||||
let mut deserializer = serde_json::Deserializer::from_slice(&input);
|
||||
let res = array_each(&mut deserializer, |obj: &RawValue| {
|
||||
doc_alloc.reset();
|
||||
let map = RawMap::from_raw_value(obj, &doc_alloc)?;
|
||||
let map = RawMap::from_raw_value_and_hasher(obj, FxBuildHasher, &doc_alloc)?;
|
||||
to_writer(&mut out, &map)
|
||||
});
|
||||
let count = match res {
|
||||
|
Loading…
Reference in New Issue
Block a user