Skip to content

Commit

Permalink
rename struct
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyFan2002 committed Apr 18, 2023
1 parent 0ca264d commit 01a3ca8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/layers/madsim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ use std::task::{Context, Poll};
/// use opendal::Operator;
/// use opendal::services;
/// use opendal::layers::MadsimLayer;
/// use opendal::layers::SimServer;
/// use opendal::layers::MadsimServer;
/// use madsim::{net::NetSim, runtime::Handle, time::sleep};
/// use std::time::Duration;
///
Expand Down Expand Up @@ -317,9 +317,9 @@ impl oio::Page for MadsimPager {

/// A simulated server.This an experimental feature, docs are not ready yet.
#[derive(Default, Clone)]
pub struct SimServer;
pub struct MadsimServer;

impl SimServer {
impl MadsimServer {
pub async fn serve(addr: SocketAddr) -> Result<()> {
let ep = Endpoint::bind(addr).await?;
let service = Arc::new(SimService::default());
Expand Down

0 comments on commit 01a3ca8

Please # to comment.