Skip to content

Commit 18cce9c

Browse files
committed
Fix tokio_mpsc test to use the right feature flag
1 parent e004ac4 commit 18cce9c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/tokio_mpsc.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
#![cfg(feature = "async-channel-transport")]
1+
#![cfg(feature = "tokio-mpsc-transport")]
22
#![allow(non_local_definitions)]
33
mod math;
44
use math::*;
55
use quic_rpc::{
66
server::{RpcChannel, RpcServerError},
7-
transport::async_channel,
7+
transport::tokio_mpsc,
88
RpcClient, RpcServer, Service,
99
};
1010

1111
#[tokio::test]
1212
async fn async_channel_channel_bench() -> anyhow::Result<()> {
1313
tracing_subscriber::fmt::try_init().ok();
14-
let (server, client) = async_channel::connection::<ComputeService>(1);
14+
let (server, client) = tokio_mpsc::connection::<ComputeService>(1);
1515

1616
let server = RpcServer::<ComputeService, _>::new(server);
1717
let server_handle = tokio::task::spawn(ComputeService::server(server));
@@ -60,7 +60,7 @@ async fn async_channel_channel_mapped_bench() -> anyhow::Result<()> {
6060
type Req = InnerRequest;
6161
type Res = InnerResponse;
6262
}
63-
let (server, client) = async_channel::connection::<OuterService>(1);
63+
let (server, client) = tokio_mpsc::connection::<OuterService>(1);
6464

6565
let server = RpcServer::new(server);
6666
let server_handle: tokio::task::JoinHandle<Result<(), RpcServerError<_>>> =
@@ -96,9 +96,9 @@ async fn async_channel_channel_mapped_bench() -> anyhow::Result<()> {
9696

9797
/// simple happy path test for all 4 patterns
9898
#[tokio::test]
99-
async fn async_channel_channel_smoke() -> anyhow::Result<()> {
99+
async fn tokio_mpsc_channel_smoke() -> anyhow::Result<()> {
100100
tracing_subscriber::fmt::try_init().ok();
101-
let (server, client) = async_channel::connection::<ComputeService>(1);
101+
let (server, client) = tokio_mpsc::connection::<ComputeService>(1);
102102

103103
let server = RpcServer::<ComputeService, _>::new(server);
104104
let server_handle = tokio::task::spawn(ComputeService::server(server));

0 commit comments

Comments
 (0)