From b0ac8e7a296fb7be22ddd8416d29088be4af71b0 Mon Sep 17 00:00:00 2001 From: glyph Date: Wed, 16 Feb 2022 14:17:58 +0200 Subject: [PATCH] clarify friends.hops in the example --- examples/friends.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/friends.rs b/examples/friends.rs index 759d792..e7c93db 100644 --- a/examples/friends.rs +++ b/examples/friends.rs @@ -51,10 +51,13 @@ async fn run() -> Result<(), GolgiError> { // Blocking can be achieved in a similar fashion. let _block_response = sbot_client.block(&to_block).await?; - // Get a list of peers within 1 hop of the local identity. + // Get a list of peers within 0 hops of the local identity. + // This returns a list of peers whom we follow. + // If `max` is set to 1, the list will include the peers we follow plus + // the peers that they follow. let follows = sbot_client .friends_hops(FriendsHops { - max: 1, + max: 0, start: None, // The `reverse` parameter is not currently implemented in `go-sbot`. reverse: Some(false),