Skip to content

Commit

Permalink
Remove async_std_connection module and move with_buffers one leve…
Browse files Browse the repository at this point in the history
…l up (#976)
  • Loading branch information
tomaka authored Jul 27, 2023
1 parent fa4081c commit cb6aaf3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 25 deletions.
3 changes: 1 addition & 2 deletions full-node/src/network_service/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ use smol::{
};
use smoldot::{
libp2p::{
async_std_connection::with_buffers,
multiaddr::{Multiaddr, ProtocolRef},
websocket,
websocket, with_buffers,
},
network::service::{self, CoordinatorToConnection},
};
Expand Down
2 changes: 1 addition & 1 deletion lib/src/libp2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
//! See also the documentation of [`peers`] for more information.
//!

pub mod async_std_connection;
pub mod collection;
pub mod connection;
pub mod multiaddr;
Expand All @@ -100,6 +99,7 @@ pub mod peer_id;
pub mod peers;
pub mod read_write;
pub mod websocket;
pub mod with_buffers;

pub use multiaddr::Multiaddr;
pub use peer_id::PeerId;
21 changes: 0 additions & 21 deletions lib/src/libp2p/async_std_connection.rs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

#![cfg(feature = "std")]
#![cfg_attr(docsrs, doc(cfg(feature = "std")))]

//! Augments an implementation of `AsyncRead` and `AsyncWrite` with a read buffer and a write
Expand Down
2 changes: 1 addition & 1 deletion light-base/src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub use smoldot::libp2p::read_write;

#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
pub use smoldot::libp2p::async_std_connection::with_buffers;
pub use smoldot::libp2p::with_buffers;

pub mod address_parse;
pub mod default;
Expand Down

0 comments on commit cb6aaf3

Please sign in to comment.