diff --git a/Cargo.lock b/Cargo.lock index 7dad604070..734d4a5984 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1427,12 +1427,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "json" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "078e285eafdfb6c4b434e0d31e8cfcb5115b651496faca5749b88fafd4f23bfd" - [[package]] name = "kv" version = "0.24.0" @@ -1620,12 +1614,12 @@ dependencies = [ [[package]] name = "mrflagly" -version = "0.2.9" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58e76b314a1e3d1fdf11a06ec8d1ccd9fc7cda2f2dfb049884060d63259e359a" +checksum = "7c7726efd230cd3586667788b847eac583931319a11429ca6ca67f06fb75a829" dependencies = [ "httptest", - "json", + "serde_json", "ureq", ] @@ -2405,7 +2399,7 @@ dependencies = [ "indoc", "libc", "memoffset", - "parking_lot 0.12.2", + "parking_lot 0.11.2", "pyo3-build-config", "pyo3-ffi", "pyo3-macros", @@ -3096,11 +3090,12 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.117" +version = "1.0.128" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3" +checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" dependencies = [ "itoa", + "memchr", "ryu", "serde", ] diff --git a/nucliadb_node/src/shards/shard_writer.rs b/nucliadb_node/src/shards/shard_writer.rs index 1c873f6886..44646b7a49 100644 --- a/nucliadb_node/src/shards/shard_writer.rs +++ b/nucliadb_node/src/shards/shard_writer.rs @@ -37,7 +37,7 @@ use super::indexes::{ShardIndexes, DEFAULT_VECTORS_INDEX_NAME}; use super::metadata::ShardMetadata; use super::versioning::{self, Versions}; use crate::disk_structure::{self, *}; -use crate::settings::{feature_flags, Settings}; +use crate::settings::Settings; use crate::telemetry::run_with_telemetry; const MAX_LABEL_LENGTH: usize = 32768; // Tantivy max is 2^16 - 4 @@ -106,7 +106,7 @@ impl ShardWriter { } #[measure(actor = "shard", metric = "new")] - pub fn new(new: NewShard, shards_path: &Path, settings: &Settings) -> NodeResult<(Self, Arc)> { + pub fn new(new: NewShard, shards_path: &Path, _settings: &Settings) -> NodeResult<(Self, Arc)> { let span = tracing::Span::current(); if new.vector_configs.is_empty() { @@ -120,7 +120,6 @@ impl ShardWriter { std::fs::create_dir(&shard_path)?; - let ff_context = HashMap::from([("kbid".to_string(), metadata.kbid())]); let versions = Versions { paragraphs: versioning::PARAGRAPHS_VERSION, vectors: versioning::VECTORS_VERSION,