channel padding: Abolish ARTI_EXPERIMENTAL_CHANNEL_PADDING env var
This was for testing and is no longer needed.
This commit is contained in:
parent
299f302f35
commit
496563e7cf
|
@ -157,7 +157,6 @@ macro_rules! define_channels_insns_and_automatic_impls { { $(
|
||||||
|
|
||||||
define_channels_insns_and_automatic_impls! {
|
define_channels_insns_and_automatic_impls! {
|
||||||
/// Whether to send padding
|
/// Whether to send padding
|
||||||
#[field educe(Default(expression = "interim_enable_by_env_var()"))]
|
|
||||||
padding_enable: bool,
|
padding_enable: bool,
|
||||||
|
|
||||||
/// Padding timing parameters
|
/// Padding timing parameters
|
||||||
|
@ -182,13 +181,6 @@ define_channels_insns_and_automatic_impls! {
|
||||||
padding_negotiate: PaddingNegotiate,
|
padding_negotiate: PaddingNegotiate,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Placeholder function for saying whether to enable channel padding
|
|
||||||
///
|
|
||||||
/// This will be abolished in due course.
|
|
||||||
pub(crate) fn interim_enable_by_env_var() -> bool {
|
|
||||||
std::env::var("ARTI_EXPERIMENTAL_CHANNEL_PADDING").unwrap_or_default() != ""
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Builder for a channels padding instructions update
|
/// Builder for a channels padding instructions update
|
||||||
///
|
///
|
||||||
/// Obtain this from `ChannelPaddingInstructions::update`,
|
/// Obtain this from `ChannelPaddingInstructions::update`,
|
||||||
|
|
Loading…
Reference in New Issue