Skip to content

Commit

Permalink
fix: trait function name collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
mccormickt committed Oct 9, 2024
1 parent 5820021 commit d4465b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions auraed/tests/vms_start_must_start_vm_with_auraed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ async fn vms_with_auraed() {
let vm_id = format!("ae-test-vm-{}", uuid::Uuid::new_v4());
let client = common::auraed_client().await;
let res = retry!(
client
.allocate(VmServiceAllocateRequest {
VmServiceClient::allocate(
&client,
VmServiceAllocateRequest {
machine: Some(VirtualMachine {
id: vm_id.clone(),
mem_size_mb: 1024,
Expand All @@ -57,8 +58,9 @@ async fn vms_with_auraed() {
drive_mounts: vec![],
auraed_address: String::new()
}),
})
.await
}
)
.await
);

assert!(res.is_ok(), "{:?}", res);
Expand Down Expand Up @@ -104,9 +106,11 @@ async fn vms_with_auraed() {
let res = res.expect("this shouldn't happen").into_inner();
assert!(res.healthy);

let res = remote_client
.allocate(CellServiceAllocateRequestBuilder::new().build())
.await;
let res = CellServiceClient::allocate(
&remote_client,
CellServiceAllocateRequestBuilder::new().build(),
)
.await;
assert!(res.is_ok(), "{:?}", res);
let cell_name = res.unwrap().into_inner().cell_name;
info!("Allocated cell: {}", cell_name);
Expand Down
2 changes: 1 addition & 1 deletion client/macros/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@ pub(crate) fn service(input: TokenStream) -> TokenStream {
};

expanded.into()
}
}

0 comments on commit d4465b1

Please sign in to comment.