Skip to content
Snippets Groups Projects
Commit a79a2e87 authored by Ian Jackson's avatar Ian Jackson
Browse files

Rename TorClient::set_stream_prefs

In line with the rest of the renaming.

As per
  tpo/core/arti!256 (comment 2771617)
parent dcf26466
No related branches found
No related tags found
1 merge request!256StreamPrefs: rename from ConnectPrefs
......@@ -507,7 +507,7 @@ impl<R: Runtime> TorClient<R> {
//
// This function is private just because we're not sure we want to provide this API.
// https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/250#note_2771238
fn set_connect_prefs(&mut self, connect_prefs: StreamPrefs) {
fn set_stream_prefs(&mut self, connect_prefs: StreamPrefs) {
self.connect_prefs = connect_prefs;
}
......@@ -518,7 +518,7 @@ impl<R: Runtime> TorClient<R> {
#[must_use]
pub fn clone_with_prefs(&self, connect_prefs: StreamPrefs) -> Self {
let mut result = self.clone();
result.set_connect_prefs(connect_prefs);
result.set_stream_prefs(connect_prefs);
result
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment