Skip to content

Commit 23891bb

Browse files
committed
Fix typo and variable names
1 parent 36bb92d commit 23891bb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

linera-views/src/backends/dual.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,21 +321,21 @@ where
321321
}
322322

323323
async fn create(config: &Self::Config, namespace: &str) -> Result<(), Self::Error> {
324-
let test1 = S1::exists(&config.first_config, namespace)
324+
let exists1 = S1::exists(&config.first_config, namespace)
325325
.await
326326
.map_err(DualStoreError::First)?;
327-
let test2 = S2::exists(&config.second_config, namespace)
327+
let exists2 = S2::exists(&config.second_config, namespace)
328328
.await
329329
.map_err(DualStoreError::Second)?;
330-
if test1 && test2 {
330+
if exists1 && exists2 {
331331
return Err(DualStoreError::StoreAlreadyExist);
332332
}
333-
if !test1 {
333+
if !exists1 {
334334
S1::create(&config.first_config, namespace)
335335
.await
336336
.map_err(DualStoreError::First)?;
337337
}
338-
if !test2 {
338+
if !exists2 {
339339
S2::create(&config.second_config, namespace)
340340
.await
341341
.map_err(DualStoreError::Second)?;

linera-views/src/backends/rocks_db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ impl TestKeyValueStore for RocksDbStoreInternal {
563563
#[derive(Error, Debug)]
564564
pub enum RocksDbStoreInternalError {
565565
/// Already existing storage
566-
#[error("Already existing storag")]
566+
#[error("Already existing storage")]
567567
StoreAlreadyExist,
568568

569569
/// Tokio join error in RocksDB.

0 commit comments

Comments
 (0)