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()))?;