pub trait PeerLookupService {
// Required methods
fn datanode<'life0, 'async_trait>(
&'life0 self,
cluster_id: ClusterId,
id: DatanodeId,
) -> Pin<Box<dyn Future<Output = Result<Option<Peer>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn flownode<'life0, 'async_trait>(
&'life0 self,
cluster_id: ClusterId,
id: FlownodeId,
) -> Pin<Box<dyn Future<Output = Result<Option<Peer>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
can query peer given a node id