@@ -293,12 +293,12 @@ concept TRequestWithOperationParams = requires(TRequest& request) {
293
293
};
294
294
295
295
template <TRequestWithOperationParams TRequest>
296
- void SetRequestSyncOperationMode (TRequest& request) {
297
- request.mutable_operation_params ()->set_operation_mode (Ydb::Operations::OperationParams::SYNC );
296
+ void SetRequestSyncOperationMode (TRequest& request, Ydb::Operations::OperationParams::OperationMode operationMode = Ydb::Operations::OperationParams::SYNC ) {
297
+ request.mutable_operation_params ()->set_operation_mode (operationMode );
298
298
}
299
299
300
300
template <class TRequest >
301
- void SetRequestSyncOperationMode (TRequest&) {
301
+ void SetRequestSyncOperationMode (TRequest&, Ydb::Operations::OperationParams::OperationMode ) {
302
302
// nothing
303
303
}
304
304
@@ -308,7 +308,7 @@ NThreading::TFuture<typename TRpc::TResponse> DoLocalRpc(typename TRpc::TRequest
308
308
TActorSystem* actorSystem, bool internalCall = false ) {
309
309
auto promise = NThreading::NewPromise<typename TRpc::TResponse>();
310
310
311
- SetRequestSyncOperationMode (proto);
311
+ SetRequestSyncOperationMode (proto, operationMode );
312
312
313
313
using TCbWrapper = TPromiseWrapper<typename TRpc::TResponse>;
314
314
auto req = new TLocalRpcCtx<TRpc, TCbWrapper>(std::move (proto), TCbWrapper (promise), database, token, requestType, internalCall);
@@ -319,8 +319,8 @@ NThreading::TFuture<typename TRpc::TResponse> DoLocalRpc(typename TRpc::TRequest
319
319
}
320
320
321
321
template <typename TRpc>
322
- NThreading::TFuture<typename TRpc::TResponse> DoLocalRpc (typename TRpc::TRequest&& proto, const TString& database, const TMaybe<TString>& token, TActorSystem* actorSystem, bool internalCall = false ) {
323
- return DoLocalRpc<TRpc>(std::move (proto), database, token, Nothing (), actorSystem, internalCall);
322
+ NThreading::TFuture<typename TRpc::TResponse> DoLocalRpc (typename TRpc::TRequest&& proto, const TString& database, const TMaybe<TString>& token, TActorSystem* actorSystem, bool internalCall = false , Ydb::Operations::OperationParams::OperationMode operationMode = Ydb::Operations::OperationParams::SYNC ) {
323
+ return DoLocalRpc<TRpc>(std::move (proto), database, token, Nothing (), actorSystem, internalCall, operationMode );
324
324
}
325
325
326
326
template <typename TRpc>
0 commit comments