# SetRetryParam() This operation resets the retry rules for each RPC call. ```cpp Status SetRetryParam(const RetryParam& retry_param) ``` **PARAMETERS:** - **retry_param** (*const [RetryParam](RetryParam.md)&*) Sets the retry parameters. **RETURNS:** *Status* Check `status.IsOk()` to confirm success. **EXCEPTIONS:** - **StatusCode** Check `status.Code()` and `status.Message()` for error details. ## Example ```cpp #include "milvus/MilvusClientV2.h" auto client = milvus::MilvusClientV2::Create(); milvus::ConnectParam connect_param{"http://localhost:19530", "root:Milvus"}; auto status = client->Connect(connect_param); if (!status.IsOk()) { std::cout << status.Message() << std::endl; } milvus::RetryParam retry_param; retry_param.WithMaxRetryTimes(10) .WithInitialBackOffMs(100) .WithMaxBackOffMs(5000) .WithBackOffMultiplier(2) .WithRetryOnRateLimit(true); status = client->SetRetryParam(retry_param); if (!status.IsOk()) { std::cout << status.Message() << std::endl; } ```