pub async fn get_agent_info_signed(
    environ: DbRead<DbKindP2pAgents>,
    _kitsune_space: Arc<KitsuneSpace>,
    kitsune_agent: Arc<KitsuneAgent>
) -> ConductorResult<Option<AgentInfoSigned>>
Expand description

Get agent info for a single agent

Examples found in repository?
src/conductor/kitsune_host_impl.rs (line 101)
94
95
96
97
98
99
100
101
102
103
104
105
    fn get_agent_info_signed(
        &self,
        GetAgentInfoSignedEvt { space, agent }: GetAgentInfoSignedEvt,
    ) -> KitsuneHostResult<Option<AgentInfoSigned>> {
        let dna_hash = DnaHash::from_kitsune(&space);
        let db = self.spaces.p2p_agents_db(&dna_hash);
        async move {
            Ok(super::p2p_agent_store::get_agent_info_signed(db?.into(), space, agent).await?)
        }
        .boxed()
        .into()
    }