channel padding: Abolish ARTI_EXPERIMENTAL_CHANNEL_PADDING env var

This was for testing and is no longer needed.
This commit is contained in:
Ian Jackson 2022-08-09 12:02:53 +01:00
parent 299f302f35
commit 496563e7cf
1 changed files with 0 additions and 8 deletions

View File

@ -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`,