Mark set-default-factory API as experimental.
This commit is contained in:
parent
c04aa9baed
commit
f8e103bb94
|
@ -13,7 +13,8 @@ repository = "https://gitlab.torproject.org/tpo/core/arti.git/"
|
|||
|
||||
[features]
|
||||
default = []
|
||||
experimental = []
|
||||
experimental = ["experimental-api"]
|
||||
experimental-api = []
|
||||
full = ["pt-client"]
|
||||
|
||||
pt-client = ["tor-linkspec/pt-client"]
|
||||
|
|
|
@ -274,10 +274,8 @@ impl<R: Runtime> ChanMgr<R> {
|
|||
///
|
||||
/// This method can be used to e.g. tell Arti to use a proxy for
|
||||
/// outgoing connections.
|
||||
pub fn set_default_transport(
|
||||
&self,
|
||||
factory: impl factory::ChannelFactory + Send + Sync + 'static,
|
||||
) {
|
||||
#[cfg(feature = "experimental-api")]
|
||||
pub fn set_default_transport(&self, factory: impl factory::ChannelFactory + 'static) {
|
||||
// TODO pt-client: Perhaps we actually want to take this as part of the constructor instead?
|
||||
// TODO pt-client: It's not clear to me that we really need this method.
|
||||
// TODO pt-client: Should this method take an ArcFactory instead?
|
||||
|
|
Loading…
Reference in New Issue