client: fix minor typo ("exhuasted") (#155)

pull/162/head
Tianon Gravi 2021-09-18 04:16:27 +00:00 committed by GitHub
parent 1b983d636d
commit 072ac4bf96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -87,10 +87,10 @@ impl<'a> NatTraverse<'a> {
}
pub fn step(&mut self) -> Result<(), Error> {
let exhuasted = self.refresh_remaining()?;
let exhausted = self.refresh_remaining()?;
// Reset peer endpoints that had no viable candidates back to the server-reported one, if it exists.
let reset_updates = exhuasted
let reset_updates = exhausted
.into_iter()
.filter_map(|peer| set_endpoint(&peer.public_key, peer.endpoint.as_ref()));