Skip to content

Commit

Permalink
Undo deprecation message edit on RpcClient::get_stake_activation (#2171)
Browse files Browse the repository at this point in the history
Undo deprecation message edit
  • Loading branch information
CriesofCarrots authored Jul 18, 2024
1 parent 891a1b1 commit 6c6442f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rpc-client-api/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ pub enum RpcRequest {
GetSlotsPerSegment,
#[deprecated(
since = "1.18.18",
note = "Do not use; getStakeActivation is not supported by the JSON-RPC server."
note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server."
)]
GetStakeActivation,
GetStakeMinimumDelegation,
Expand Down
4 changes: 2 additions & 2 deletions rpc-client/src/nonblocking/rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2152,8 +2152,8 @@ impl RpcClient {
/// ```
#[deprecated(
since = "1.18.18",
note = "Do not use; getStakeActivation is not supported by the JSON-RPC server. Please \
use the stake account and StakeHistory sysvar to call \
note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server. Please use \
the stake account and StakeHistory sysvar to call \
`Delegation::stake_activating_and_deactivating()` instead"
)]
#[allow(deprecated)]
Expand Down
4 changes: 2 additions & 2 deletions rpc-client/src/rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1790,8 +1790,8 @@ impl RpcClient {
/// ```
#[deprecated(
since = "1.18.18",
note = "Do not use; getStakeActivation is not supported by the JSON-RPC server. Please \
use the stake account and StakeHistory sysvar to call \
note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server. Please use \
the stake account and StakeHistory sysvar to call \
`Delegation::stake_activating_and_deactivating()` instead"
)]
#[allow(deprecated)]
Expand Down

0 comments on commit 6c6442f

Please sign in to comment.