mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 03:33:53 +00:00
bugfix in People::get_followed_pubkeys()
This commit is contained in:
parent
533dba7191
commit
cef0dcfcb1
@ -23,7 +23,9 @@ impl People {
|
||||
|
||||
pub async fn get_followed_pubkeys(&self) -> Vec<PublicKeyHex> {
|
||||
let mut output: Vec<PublicKeyHex> = Vec::new();
|
||||
for (_, person) in self.people.iter() {
|
||||
for person in self.people.iter()
|
||||
.filter_map(|(_,p)| if p.followed==1 { Some(p) } else { None })
|
||||
{
|
||||
output.push(person.pubkey.clone());
|
||||
}
|
||||
output
|
||||
|
Loading…
Reference in New Issue
Block a user