message: Double borrow fix
diff: @@ -342,17 +342,13 @@ impl WalletService {
  pub fn add_indy_object<T>(&self, wallet_handle: i32, name: &str, object: &T, tags_json: &str) -> Result<String, WalletError> where T: JsonEncodable, T: NamedType {
  let type_ = T::short_type_name();
  - match self.wallets.borrow().get(&wallet_handle) {
  - Some(wallet) => {
  +
  let object_json = object.to_json()
  .map_err(map_err_trace!())
  .map_err(|err| CommonError::InvalidState(format!("Cannot serialize {:?}: {:?}", type_, err)))?;
  self.add_record(wallet_handle, &self.add_prefix(type_), name, &object_json, tags_json)?;
  Ok(object_json)
  }
  - None => Err(WalletError::InvalidHandle(wallet_handle.to_string()))
  - }
  - }
  pub fn update_record_value(&self, wallet_handle: i32, type_: &str, name: &str, value: &str) -> Result<(), WalletError> {
  match self.wallets.borrow().get(&wallet_handle) {
  