pub fn subscribe(
        subscribed_configs: &[ConfigID],
    ) -> (Self, Receiver<(), OnChainConfigPayload>) {
        let (sender, receiver) =
            libra_channel::new(QueueStyle::LIFO, NonZeroUsize::new(1).unwrap(), None);
        let subscribed_items = subscribed_configs.iter().cloned().collect::<HashSet<_>>();
        (
            Self {
                sender,
                subscribed_items,
            },
            receiver,
        )
    }
/// Constructs an reconfig subscription object for a set of configs `subscribed_configs`
/// Returns the subscription object, and the receiving end of a channel that reconfig notifications
/// will be sent to
Constructs an reconfig subscription object for a set of configs `subscribed_configs`
Returns the subscription object, and the receiving end of a channel that reconfig notifications
will be sent to
Constructs an reconfig subscription object for a set of configs ` subscribed_configs ` Returns the subscription object and the receiving end of a channel that reconfig notifications will be sent to
pub fn subscribe(
        subscribed_configs: &[ConfigID],
    ) -> (Self, Receiver<(), OnChainConfigPayload>) {
        let (sender, receiver) =
            libra_channel::new(QueueStyle::LIFO, NonZeroUsize::new(1).unwrap(), None);
        let subscribed_items = subscribed_configs.iter().cloned().collect::<HashSet<_>>();
        (
            Self {
                sender,
                subscribed_items,
            },
            receiver,
        )
    }
pub fn subscribe ( subscribed_configs : & [ ConfigID ] , ) -> ( Self , Receiver < ( ) , OnChainConfigPayload > ) { let ( sender , receiver ) = libra_channel :: new ( QueueStyle :: LIFO , NonZeroUsize :: new ( 1 ) . unwrap ( ) , None ) ; let subscribed_items = subscribed_configs . iter ( ) . cloned ( ) . collect :: < HashSet < _ > > ( ) ; ( Self { sender , subscribed_items , } , receiver , ) }
Constructs an reconfig subscription object for a set of configs `subscribed_configs`
Returns the subscription object, and the receiving end of a channel that reconfig notifications
will be sent to
Constructs an reconfig subscription object for a set of configs ` subscribed_configs ` Returns the subscription object and the receiving end of a channel that reconfig notifications will be sent to
subscribed_configs
&[ConfigID]
subscribed_configs
&[ConfigID]