Skip to content

Commit 4715d81

Browse files
committed
Remove references to no longer available transport configuration
1 parent 5da7e6b commit 4715d81

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

rust/hermes-ipfs/src/lib.rs

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -77,26 +77,6 @@ where N: NetworkBehaviour<ToSwarm = Infallible> + Send + Sync
7777
)
7878
}
7979

80-
// #[must_use]
81-
// /// Set the transport configuration for the IPFS node.
82-
// pub fn set_transport_configuration(
83-
// self,
84-
// transport: rust_ipfs::p2p::TransportConfig,
85-
// ) -> Self {
86-
// Self(self.0.set_transport_configuration(transport))
87-
// }
88-
89-
// #[must_use]
90-
// /// Disable TLS for the IPFS node.
91-
// pub fn disable_tls(self) -> Self {
92-
// let transport = rust_ipfs::p2p::TransportConfig {
93-
// enable_quic: false,
94-
// enable_secure_websocket: false,
95-
// ..Default::default()
96-
// };
97-
// Self(self.0.set_transport_configuration(transport))
98-
// }
99-
10080
/// Start the IPFS node.
10181
///
10282
/// ## Errors
@@ -127,7 +107,8 @@ impl HermesIpfs {
127107
.with_default()
128108
.set_default_listener()
129109
// TODO(saibatizoku): Re-Enable default transport config when libp2p Cert bug is fixed
130-
//.disable_tls()
110+
// TODO(rafal-ch): TLS is disabled by default, we can enable it by calling
111+
// `IpfsBuilder::enable_secure...()` .enable_secure_websocket()
131112
.start()
132113
.await?;
133114
Ok(HermesIpfs { node })

0 commit comments

Comments
 (0)