Skip to content

Commit

Permalink
Update stronghold
Browse files Browse the repository at this point in the history
  • Loading branch information
l1h3r committed Mar 3, 2021
1 parent 3a8e545 commit f4bbe73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 3 additions & 4 deletions identity-account/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ futures = { version = "0.3" }
hashbrown = { version = "0.9" }
identity-core = { version = "=0.2.0", path = "../identity-core" }
once_cell = { version = "1.5", default-features = false, features = ["std"] }
riker = { version = "0.4" }
riker = { version = "0.4", git ="https://github.com/elenaf9/riker", branch = "master" }
slog = { version = "2.7" }
tokio = { version = "1.2", default-features = false, features = ["rt", "rt-multi-thread", "sync"] }
zeroize = { version = "1.2"}
Expand All @@ -26,9 +26,8 @@ rev = "dbb082870676b25b1867513792e51bd74ef1824d"
features = ["blake2b", "ed25519", "hmac", "pbkdf", "sha"]

[dependencies.iota-stronghold]
path = "../../stronghold.rs/client"
# git = "https://github.com/iotaledger/stronghold.rs"
# rev = "175d33562081dc26bd0b4b5cce624759606161d7"
git = "https://github.com/iotaledger/stronghold.rs"
rev = "374742b1d0d42592d7ae39bb7842fb301b685ddd"

[dev-dependencies]
rand = { version = "0.8" }
Expand Down
7 changes: 6 additions & 1 deletion identity-account/src/stronghold/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,16 @@ impl Database {

// Spawn a new actor or switch targets if this client was already spawned
if self.clients_active.contains(client) {
self.stronghold.switch_actor_target(client.into()).to_result()?;
self
.stronghold
.switch_actor_target(client.into())
.await
.to_result()?;
} else {
self
.stronghold
.spawn_stronghold_actor(client.into(), flags.to_vec())
.await
.to_result()?;

self.clients_active.insert(client.into());
Expand Down

0 comments on commit f4bbe73

Please sign in to comment.