Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
lwlee2608 committed Mar 23, 2024
1 parent c9c9369 commit daec136
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/transport/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,17 @@ impl DiameterClient {
/// handler: The `ClientHandler` for reading messages from the server.
///
/// Example:
/// ```
/// tokio::spawn(async move {
/// DiameterClient::handle(&mut handler).await;
/// });
/// ```no_run
/// use diameter::transport::client::{ClientHandler, DiameterClient};
///
/// #[tokio::main]
/// async fn main() {
/// let mut client = DiameterClient::new("localhost:3868");
/// let mut handler = client.connect().await.unwrap();
/// tokio::spawn(async move {
/// DiameterClient::handle(&mut handler).await;
/// });
/// }
/// ```
pub async fn handle(handler: &mut ClientHandler) {
loop {
Expand Down

0 comments on commit daec136

Please sign in to comment.