mirror of
https://github.com/kristoferssolo/transmission-rpc.git
synced 2025-10-21 20:10:37 +00:00
blocklist-update: fix example comment.
This commit is contained in:
parent
c3f2197694
commit
709214c7d8
@ -165,7 +165,7 @@ impl TransClient {
|
||||
/// use std::env;
|
||||
/// use dotenv::dotenv;
|
||||
/// use transmission_rpc::TransClient;
|
||||
/// use transmission_rpc::types::{Result, BlockListUpdate, RpcResponse, BasicAuth};
|
||||
/// use transmission_rpc::types::{Result, BlocklistUpdate, RpcResponse, BasicAuth};
|
||||
///
|
||||
/// #[tokio::main]
|
||||
/// async fn main() -> Result<()> {
|
||||
@ -174,7 +174,7 @@ impl TransClient {
|
||||
/// let url= env::var("TURL")?;
|
||||
/// let basic_auth = BasicAuth{user: env::var("TUSER")?, password: env::var("TPWD")?};
|
||||
/// let client = TransClient::with_auth(&url, basic_auth);
|
||||
/// let response: Result<RpcResponse<BlockListUpdate>> = client.blocklist_update().await;
|
||||
/// let response: Result<RpcResponse<BlocklistUpdate>> = client.blocklist_update().await;
|
||||
/// match response {
|
||||
/// Ok(_) => println!("Yay!"),
|
||||
/// Err(_) => panic!("Oh no!")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user