Prechádzať zdrojové kódy

Add suggestion to deprecation message (#1993)

Tyera 1 rok pred
rodič
commit
c848645aba

+ 3 - 1
rpc-client/src/nonblocking/rpc_client.rs

@@ -2078,7 +2078,9 @@ impl RpcClient {
     /// ```
     #[deprecated(
         since = "1.18.18",
-        note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server"
+        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"
     )]
     pub async fn get_stake_activation(
         &self,

+ 3 - 1
rpc-client/src/rpc_client.rs

@@ -1776,7 +1776,9 @@ impl RpcClient {
     /// ```
     #[deprecated(
         since = "1.18.18",
-        note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server"
+        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)]
     pub fn get_stake_activation(