Skip to content

Commit

Permalink
Update comment for with_use_call_v3_endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
DSharifi committed Jul 23, 2024
1 parent 23f1430 commit a6bbae1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion ic-agent/src/agent/http_transport/hyper_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,13 @@ where
}
}

/// Use call v3 endpoint for update calls.
/// Use call v3 endpoint for synchronous update calls.
/// __This is an experimental feature, and should not be used in production,
/// as the endpoint is not available yet on the mainnet IC.__
///
/// By enabling this feature, the agent will use the `v3` endpoint for update calls,
/// which is synchronous. This means the replica will wait for a certificate for the call,
/// meaning the agent will not need to poll for the certificate.
#[cfg(feature = "experimental_sync_call")]
pub fn with_use_call_v3_endpoint(self) -> Self {
Self {
Expand Down
8 changes: 7 additions & 1 deletion ic-agent/src/agent/http_transport/reqwest_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,13 @@ impl ReqwestTransport {
}
}

/// Use call v3 endpoint for update calls.
/// Use call v3 endpoint for synchronous update calls.
/// __This is an experimental feature, and should not be used in production,
/// as the endpoint is not available yet on the mainnet IC.__
///
/// By enabling this feature, the agent will use the `v3` endpoint for update calls,
/// which is synchronous. This means the replica will wait for a certificate for the call,
/// meaning the agent will not need to poll for the certificate.
#[cfg(feature = "experimental_sync_call")]
pub fn with_use_call_v3_endpoint(self) -> Self {
ReqwestTransport {
Expand Down

0 comments on commit a6bbae1

Please sign in to comment.