From 44f84239042df8a914e435880a0de86d9de1f57c Mon Sep 17 00:00:00 2001 From: Andre da Silva Date: Tue, 3 Jun 2025 18:21:26 -0300 Subject: [PATCH] Missed one rename still using CloneWithRootKey --- linera-indexer/lib/src/common.rs | 4 ++-- linera-indexer/lib/src/indexer.rs | 2 +- linera-indexer/lib/src/plugin.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/linera-indexer/lib/src/common.rs b/linera-indexer/lib/src/common.rs index 25dbfc37408..07382e4c9d1 100644 --- a/linera-indexer/lib/src/common.rs +++ b/linera-indexer/lib/src/common.rs @@ -46,8 +46,8 @@ pub enum IndexerError { PluginAlreadyRegistered, #[error("Invalid certificate content: {0:?}")] InvalidCertificateValue(CryptoHash), - #[error("Clone with root key error")] - CloneWithRootKeyError, + #[error("Open exclusive error")] + OpenExclusiveError, #[cfg(feature = "rocksdb")] #[error(transparent)] diff --git a/linera-indexer/lib/src/indexer.rs b/linera-indexer/lib/src/indexer.rs index ceac1a6d5cd..32f221fdf36 100644 --- a/linera-indexer/lib/src/indexer.rs +++ b/linera-indexer/lib/src/indexer.rs @@ -66,7 +66,7 @@ where let root_key = "indexer".as_bytes().to_vec(); let store = store .open_exclusive(&root_key) - .map_err(|_e| IndexerError::CloneWithRootKeyError)?; + .map_err(|_e| IndexerError::OpenExclusiveError)?; let context = ViewContext::create_root_context(store, ()) .await .map_err(|e| IndexerError::ViewError(e.into()))?; diff --git a/linera-indexer/lib/src/plugin.rs b/linera-indexer/lib/src/plugin.rs index 05fba522b07..803193daec1 100644 --- a/linera-indexer/lib/src/plugin.rs +++ b/linera-indexer/lib/src/plugin.rs @@ -74,7 +74,7 @@ where let root_key = name.as_bytes().to_vec(); let store = store .open_exclusive(&root_key) - .map_err(|_e| IndexerError::CloneWithRootKeyError)?; + .map_err(|_e| IndexerError::OpenExclusiveError)?; let context = ViewContext::create_root_context(store, ()) .await .map_err(|e| IndexerError::ViewError(e.into()))?;