feat(rust): use existing vault if available
@@ -194,8 +194,12 @@ impl NodeManager {
}
pub async fn configure_authorities(&mut self, ac: AuthoritiesConfig) -> Result<()> {
+ if let Some(v) = self.vault.as_ref() {
+ self.authorities = Some(ac.to_public_identities(v).await?)
+ } else {
let v = Vault::default();
- self.authorities = Some(ac.to_public_identities(&v).await?);
+ self.authorities = Some(ac.to_public_identities(&v).await?)
+ }
Ok(())
}
