Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #208 from dusk-network/status_fix
Browse files Browse the repository at this point in the history
Fix status overlap
  • Loading branch information
Neotamandua authored Oct 3, 2023
2 parents 1fafb35 + b886ff1 commit 47fa443
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Fix staking address display [#204]
- Fix status overlap [#179]

## [0.19.0] - 2023-09-20

Expand Down Expand Up @@ -430,6 +431,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Implementation of `Store` trait from `wallet-core`
- Implementation of `State` and `Prover` traits from `wallet-core`

[#179]: https://github.com/dusk-network/wallet-cli/issues/179
[#204]: https://github.com/dusk-network/wallet-cli/issues/204
[#182]: https://github.com/dusk-network/wallet-cli/issues/182
[#198]: https://github.com/dusk-network/wallet-cli/issues/198
Expand Down
1 change: 1 addition & 0 deletions src/clients.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ impl StateStore {

tokio::spawn(async move {
loop {
let status = |_: &_| {};
let sender = Arc::clone(&sender);
let _ = sender.send("Syncing..".to_string());

Expand Down
4 changes: 2 additions & 2 deletions src/clients/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ use crate::{Error, RuskRequest, MAX_ADDRESSES};

const RKYV_TREE_LEAF_SIZE: usize = size_of::<ArchivedTreeLeaf>();

pub(crate) async fn sync_db(
pub(crate) async fn sync_db<F: Fn(&str)>(
client: &RuskHttpClient,
store: &LocalStore,
cache: &Cache,
status: fn(&str),
status: F,
) -> Result<(), Error> {
let addresses: Vec<_> = (0..MAX_ADDRESSES)
.flat_map(|i| store.retrieve_ssk(i as u64))
Expand Down

0 comments on commit 47fa443

Please sign in to comment.