Skip to content

Commit

Permalink
fix: invalid add_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Dec 4, 2024
1 parent a421692 commit c46fa26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rs-dapi-client/src/address_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl AddressList {
/// Add a node [Address] to [AddressList] by [Uri].
/// Returns false if the address is already in the list.
pub fn add_uri(&mut self, uri: Uri) -> bool {
self.addresses.insert(uri.try_into().expect("valid uri"))
self.add(Address::try_from(uri).expect("valid uri"))
}

/// Randomly select a not banned address.
Expand Down

0 comments on commit c46fa26

Please sign in to comment.