Skip to content

Commit

Permalink
chore: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Dec 11, 2024
1 parent a9c9890 commit c3077a5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,18 +586,18 @@ impl NodeBuilder {
secondary_namespace,
key
);
let channel_monitor_value =
let value =
from_store.read(primary_namespace, secondary_namespace, key).map_err(|e| {
log_error!(logger, "Failed to fetch value: {}", e);
BuildError::KVStoreSetupFailed
})?;
// write value to new store
vss_store
.write(primary_namespace, secondary_namespace, key, &channel_monitor_value)
.map_err(|e| {
vss_store.write(primary_namespace, secondary_namespace, key, &value).map_err(
|e| {
log_error!(logger, "Failed to migrate value: {}", e);
BuildError::KVStoreSetupFailed
})?;
},
)?;
Ok(())
};

Expand Down

0 comments on commit c3077a5

Please sign in to comment.