People::get_followed_pubkeys() does not need to be async

This commit is contained in:
Mike Dilger 2023-01-02 16:02:47 +13:00
parent a85c416657
commit a625cb7c91
2 changed files with 1 additions and 2 deletions

View File

@ -169,7 +169,6 @@ impl Overlord {
.read()
.await
.get_followed_pubkeys()
.await
.iter()
.map(|p| p.to_owned())
.collect();

View File

@ -29,7 +29,7 @@ impl People {
}
}
pub async fn get_followed_pubkeys(&self) -> Vec<PublicKeyHex> {
pub fn get_followed_pubkeys(&self) -> Vec<PublicKeyHex> {
let mut output: Vec<PublicKeyHex> = Vec::new();
for person in self
.people