Skip to content

Commit

Permalink
refactor: renamed wait_for_server to wait_for_start (same as in aw-cl…
Browse files Browse the repository at this point in the history
…ient-python)
  • Loading branch information
ErikBjare committed Oct 17, 2024
1 parent 4723f32 commit 451367f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aw-client-rust/src/blocking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl AwClient {
proxy_method!(get_event_count, i64, bucketname: &str);
proxy_method!(get_info, aw_models::Info,);

pub fn wait_for_server(&self) -> Result<(), Box<dyn Error>> {
self.client.wait_for_server()
pub fn wait_for_start(&self) -> Result<(), Box<dyn Error>> {
self.client.wait_for_start()
}
}
2 changes: 1 addition & 1 deletion aw-client-rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl AwClient {
}

// TODO: make async
pub fn wait_for_server(&self) -> Result<(), Box<dyn Error>> {
pub fn wait_for_start(&self) -> Result<(), Box<dyn Error>> {
let socket_addrs = self.baseurl.socket_addrs(|| None)?;
let socket_addr = socket_addrs.first()
.ok_or("Unable to resolve baseurl into socket address")?;
Expand Down

0 comments on commit 451367f

Please sign in to comment.