diff --git a/ector/examples/cancelled.rs b/ector/examples/cancelled.rs index 1c70d59..eb2ae81 100644 --- a/ector/examples/cancelled.rs +++ b/ector/examples/cancelled.rs @@ -11,7 +11,7 @@ use { futures::future::join, }; -async fn test(mut addr: RequestManager>, (), u32>) { +async fn test(mut addr: DynamicRequestAddress<(), u32>) { let r = addr.request(()).await; assert_eq!(r, 1); println!("Server returned {}", r); diff --git a/ector/examples/request.rs b/ector/examples/request.rs index 382603d..f21319c 100644 --- a/ector/examples/request.rs +++ b/ector/examples/request.rs @@ -9,13 +9,7 @@ use { futures::future::join, }; -async fn test( - mut addr: RequestManager< - DynamicAddress>, - &'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;