Skip to content

Commit aa76736

Browse files
committed
style fixes
1 parent 56f7b24 commit aa76736

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

tests/query/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ def tx(session):
3131
@pytest.fixture
3232
def pool(driver_sync):
3333
pool = QuerySessionPool(driver_sync)
34-
yield pool
34+
yield pool

tests/query/test_query_session_pool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def test_oneshot_query_raises(self, pool: QuerySessionPool):
2626
def test_retry_op_uses_created_session(self, pool: QuerySessionPool):
2727
def callee(session: QuerySessionSync):
2828
assert session._state._state == QuerySessionStateEnum.CREATED
29+
2930
pool.retry_operation_sync(callee)
3031

3132
def test_retry_op_normal(self, pool: QuerySessionPool):

ydb/query/base.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,6 @@ def wrap_execute_query_response(rpc_state, response_pb, tx=None, commit_tx=False
202202
return convert.ResultSet.from_message(response_pb.result_set)
203203

204204

205-
X_YDB_SERVER_HINTS = "x-ydb-server-hints"
206-
X_YDB_SESSION_CLOSE = "session-close"
207-
208-
209205
def bad_session_handler(func):
210206
@functools.wraps(func)
211207
def decorator(rpc_state, response_pb, session_state, *args, **kwargs):

ydb/query/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ def _attach(self):
198198
self._state._change_state(QuerySessionStateEnum.CREATED)
199199

200200
threading.Thread(
201-
target=self._chech_session_status_loop,
201+
target=self._check_session_status_loop,
202202
args=(status_stream,),
203203
name="check session status thread",
204204
daemon=True,
205205
).start()
206206

207-
def _chech_session_status_loop(self, status_stream):
207+
def _check_session_status_loop(self, status_stream):
208208
try:
209209
for status in status_stream:
210210
if status.status != issues.StatusCode.SUCCESS:

0 commit comments

Comments
 (0)