Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
0xIchigo committed May 6, 2024
1 parent 78cb626 commit 7c79d10
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/webhook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ impl Helius {
);
let parsed_url: Url = Url::parse(&url).expect("Failed to parse URL");

self.rpc_client
.handler
.send(Method::GET, parsed_url, None::<&()>)
.await
self.rpc_client.handler.send(Method::GET, parsed_url, None::<&()>).await
}

/// Retrieves all Helius webhooks programmatically
Expand All @@ -105,16 +102,14 @@ impl Helius {
);
let parsed_url: Url = Url::parse(&url).expect("Failed to parse URL");

self.rpc_client.handler
.send(Method::GET, parsed_url, None::<&()>)
.await
self.rpc_client.handler.send(Method::GET, parsed_url, None::<&()>).await
}

/// Deletes a given Helius webhook programmatically
///
///
/// # Arguments
/// * `webhook_id` - The ID of the webhook to be deleted
///
///
/// # Returns
/// A unit since there isn't any response
pub async fn delete_webhook(&self, webhook_id: &str) -> Result<()> {
Expand All @@ -124,7 +119,8 @@ impl Helius {
);
let parsed_url: Url = Url::parse(&url).expect("Failed to parse URL");

self.rpc_client.handler
self.rpc_client
.handler
.send(Method::DELETE, parsed_url, None::<&()>)
.await
}
Expand Down

0 comments on commit 7c79d10

Please sign in to comment.