Skip to content

Commit c383076

Browse files
committed
Missed one rename still using CloneWithRootKey
1 parent 293ab1b commit c383076

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

linera-indexer/lib/src/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ pub enum IndexerError {
4646
PluginAlreadyRegistered,
4747
#[error("Invalid certificate content: {0:?}")]
4848
InvalidCertificateValue(CryptoHash),
49-
#[error("Clone with root key error")]
50-
CloneWithRootKeyError,
49+
#[error("Open exclusive error")]
50+
OpenExclusiveError,
5151

5252
#[cfg(feature = "rocksdb")]
5353
#[error(transparent)]

linera-indexer/lib/src/indexer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ where
6666
let root_key = "indexer".as_bytes().to_vec();
6767
let store = store
6868
.open_exclusive(&root_key)
69-
.map_err(|_e| IndexerError::CloneWithRootKeyError)?;
69+
.map_err(|_e| IndexerError::OpenExclusiveError)?;
7070
let context = ViewContext::create_root_context(store, ())
7171
.await
7272
.map_err(|e| IndexerError::ViewError(e.into()))?;

linera-indexer/lib/src/plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ where
7474
let root_key = name.as_bytes().to_vec();
7575
let store = store
7676
.open_exclusive(&root_key)
77-
.map_err(|_e| IndexerError::CloneWithRootKeyError)?;
77+
.map_err(|_e| IndexerError::OpenExclusiveError)?;
7878
let context = ViewContext::create_root_context(store, ())
7979
.await
8080
.map_err(|e| IndexerError::ViewError(e.into()))?;

0 commit comments

Comments
 (0)