Skip to content

Commit b75df6c

Browse files
committed
refactor: reformat code
Signed-off-by: Gabor Boros <[email protected]>
1 parent db5681f commit b75df6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rethinkdb/net.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,6 @@ def __init__(self, parent: "ConnectionInstance", timeout: int):
432432
try:
433433
self.__socket = socket.create_connection((self.host, self.port), timeout)
434434

435-
436435
sock = self.__socket
437436
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
438437
sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
@@ -728,9 +727,10 @@ def close(self, noreply_wait=False, token=None) -> None:
728727
if noreply_wait:
729728
query = Query(
730729
PbQuery.QueryType.NOREPLY_WAIT,
731-
token or self.parent._new_token(), # pylint: disable=protected-access
730+
token
731+
or self.parent._new_token(), # pylint: disable=protected-access
732+
None,
732733
None,
733-
None
734734
)
735735
self.run_query(query, False)
736736
finally:

0 commit comments

Comments
 (0)