Skip to content

Commit

Permalink
rpc: Add function comments for get_clients.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Dec 6, 2024
1 parent 3c392ac commit 4988969
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/src/rpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ pub mod verifier;
pub mod watchtower;
mod wrapper;

/// Returns gRPC clients.
///
/// # Parameters
///
/// - `endpoints`: URIs for clients
/// - `connect`: Function that will be used to initiate gRPC connection
///
/// # Returns
///
/// - [`CLIENT`]: [`tonic`] gRPC client.
pub async fn get_clients<CLIENT, F, Fut>(
endpoints: Vec<String>,
connect: F,
Expand Down

0 comments on commit 4988969

Please sign in to comment.