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),