Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
XmasApple committed Nov 1, 2023
1 parent 7fa7a10 commit 4c43f81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Ydb.Sdk/src/Services/Query/QueryClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ private async Task<IResponse> ExecOnSession(
$"Unexpected cast error: {nameof(_sessionPool)} is not object of type {typeof(SessionPool).FullName}");
}

return await sessionPool.ExecWithRetry(func, retrySettings);
return await sessionPool.ExecOnSession(func, retrySettings);
}

public async Task<QueryResponseWithResult<T>> Query<T>(string queryString, Dictionary<string, YdbValue> parameters,
Expand Down
2 changes: 1 addition & 1 deletion src/Ydb.Sdk/src/Services/Shared/SessionPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ private void Dispose(bool disposing)
}
}

internal async Task<IResponse> ExecWithRetry(
internal async Task<IResponse> ExecOnSession(
Func<TSession, Task<IResponse>> func,
RetrySettings? retrySettings)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Ydb.Sdk/src/Services/Table/Retry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public async Task<IResponse> SessionExec(
$"Unexpected cast error: {nameof(_sessionPool)} is not object of type {typeof(SessionPool).FullName}");
}

return await sessionPool.ExecWithRetry(operationFunc, retrySettings);
return await sessionPool.ExecOnSession(operationFunc, retrySettings);
}
}

0 comments on commit 4c43f81

Please sign in to comment.