Skip to content

Commit

Permalink
feat: simplified test in
Browse files Browse the repository at this point in the history
  • Loading branch information
xgroleau committed Sep 14, 2023
1 parent e935c23 commit e4bf9c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ector/examples/cancelled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use {
futures::future::join,
};

async fn test(mut addr: RequestManager<DynamicAddress<Request<(), u32>>, (), u32>) {
async fn test(mut addr: DynamicRequestAddress<(), u32>) {
let r = addr.request(()).await;
assert_eq!(r, 1);
println!("Server returned {}", r);
Expand Down
8 changes: 1 addition & 7 deletions ector/examples/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ use {
futures::future::join,
};

async fn test(
mut addr: RequestManager<
DynamicAddress<Request<&'static str, &'static str>>,
&'static str,
&'static str,
>,
) {
async fn test(mut addr: DynamicRequestAddress<&'static str, &'static str>) {
let r = addr.request("Hello").await;
println!("Server returned {}", r);
Timer::after(Duration::from_secs(1)).await;
Expand Down

0 comments on commit e4bf9c4

Please sign in to comment.