/// Returns a future that runs the Interledger.rs Node.
///
/// If the Prometheus configuration was provided, it will
/// also run the Prometheus metrics server on the given address.
// TODO when a BTP connection is made, insert a outgoing HTTP entry into the Store to tell other
// connector instances to forward packets for that account to us
Returns a future that runs the Interledger.rs Node.
If the Prometheus configuration was provided, it will
also run the Prometheus metrics server on the given address.
TODO when a BTP connection is made, insert a outgoing HTTP entry into the Store to tell other
connector instances to forward packets for that account to us
Returns a future that runs the Interledger . rs Node . If the Prometheus configuration was provided it will also run the Prometheus metrics server on the given address . TODO when a BTP connection is made insert a outgoing HTTP entry into the Store to tell other connector instances to forward packets for that account to us
pub async fn serve(self, log_writer: Option<LogWriter>) -> Result<(), ()> {
        cfg_if! {
            if #[cfg(feature = "monitoring")] {
                let f = futures::future::join(serve_prometheus(self.clone()), self.serve_node(log_writer)).then(
                    |r| async move {
                        if r.0.is_ok() || r.1.is_ok() {
                            Ok(())
                        } else {
                            Err(())
                        }
                    },
                );
            } else {
                let f = self.serve_node(log_writer);
            }
        }
        f.await
    }
pub async fn serve ( self , log_writer : Option < LogWriter > ) -> Result < ( ) , ( ) > { cfg_if ! { if [ cfg ( feature " " ) ] { let f futures future join ( serve_prometheus ( self clone ( ) ) self serve_node ( log_writer ) ) then ( r async move { if r 0 is_ok ( ) r 1 is_ok ( ) { Ok ( ( ) ) } else { Err ( ( ) ) } } ) } else { let f self serve_node ( log_writer ) } } f . await }
Returns a future that runs the Interledger.rs Node.
Returns a future that runs the Interledger . rs Node .
self
log_writer
Option<LogWriter>