update use paths in all examples
This commit is contained in:
parent
3a406cb92e
commit
b492ff07d0
|
@ -5,7 +5,7 @@ use golgi::messages::SsbMessageContent;
|
|||
use golgi::sbot::Sbot;
|
||||
|
||||
async fn run() -> Result<(), GolgiError> {
|
||||
let mut sbot_client = Sbot::init(None, None).await?;
|
||||
let mut sbot_client = Sbot::connect(None, None).await?;
|
||||
|
||||
let id = sbot_client.whoami().await?;
|
||||
println!("whoami: {}", id);
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
use async_std::stream::StreamExt;
|
||||
use futures::pin_mut;
|
||||
use std::process;
|
||||
|
||||
use golgi::error::GolgiError;
|
||||
use golgi::messages::SsbMessageContent;
|
||||
use golgi::sbot::Sbot;
|
||||
use golgi::sbot::{FriendsHops, RelationshipQuery, SubsetQuery, SubsetQueryOptions};
|
||||
use golgi::sbot::{FriendsHops, RelationshipQuery};
|
||||
|
||||
async fn run() -> Result<(), GolgiError> {
|
||||
let mut sbot_client = Sbot::init(None, None).await?;
|
||||
let mut sbot_client = Sbot::connect(None, None).await?;
|
||||
|
||||
let id = sbot_client.whoami().await?;
|
||||
println!("whoami: {}", id);
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
use async_std::stream::StreamExt;
|
||||
use futures::pin_mut;
|
||||
use std::process;
|
||||
|
||||
use kuska_ssb::api::dto::content::PubAddress;
|
||||
|
@ -7,10 +5,9 @@ use kuska_ssb::api::dto::content::PubAddress;
|
|||
use golgi::error::GolgiError;
|
||||
use golgi::messages::SsbMessageContent;
|
||||
use golgi::sbot::Sbot;
|
||||
use golgi::sbot::{SubsetQuery, SubsetQueryOptions};
|
||||
|
||||
async fn run() -> Result<(), GolgiError> {
|
||||
let mut sbot_client = Sbot::init(None, None).await?;
|
||||
let mut sbot_client = Sbot::connect(None, None).await?;
|
||||
|
||||
let id = sbot_client.whoami().await?;
|
||||
println!("whoami: {}", id);
|
||||
|
|
|
@ -8,7 +8,7 @@ use golgi::messages::{SsbMessageContentType, SsbMessageValue};
|
|||
use golgi::sbot::Sbot;
|
||||
|
||||
async fn run() -> Result<(), GolgiError> {
|
||||
let mut sbot_client = Sbot::init(None, None).await?;
|
||||
let mut sbot_client = Sbot::connect(None, None).await?;
|
||||
|
||||
let id = sbot_client.whoami().await?;
|
||||
println!("whoami: {}", id);
|
||||
|
|
Loading…
Reference in New Issue