Added deb build
This commit is contained in:
@@ -57,7 +57,14 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
};
|
||||
|
||||
let client = rt.block_on(async {
|
||||
FurumiClient::connect(&full_addr, &args.token).await
|
||||
let c = FurumiClient::connect(&full_addr, &args.token).await?;
|
||||
|
||||
// Ping the server to verify connection and authentication token
|
||||
if let Err(e) = c.get_attr("/").await {
|
||||
return Err(format!("Failed to authenticate or connect to server: {}", e).into());
|
||||
}
|
||||
|
||||
Ok::<_, Box<dyn std::error::Error>>(c)
|
||||
})?;
|
||||
|
||||
let fuse_fs = fs::FurumiFuse::new(client, rt.handle().clone());
|
||||
|
||||
Reference in New Issue
Block a user