Skip to content

Commit 6d5eb89

Browse files
This is not async
1 parent 882ea95 commit 6d5eb89

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/replit_river/v2/client_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async def _retry_connection(self) -> Session:
8080
logger.debug("Triggering get_or_create_session")
8181
return await self.get_or_create_session()
8282

83-
async def _delete_session(self, session: Session) -> None:
83+
def _delete_session(self, session: Session) -> None:
8484
if self._session is session:
8585
self._session = None
8686
else:

src/replit_river/v2/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class ResultError(TypedDict):
109109
trace_propagator = TraceContextTextMapPropagator()
110110
trace_setter = TransportMessageTracingSetter()
111111

112-
CloseSessionCallback: TypeAlias = Callable[["Session"], Coroutine[Any, Any, Any]]
112+
CloseSessionCallback: TypeAlias = Callable[["Session"], None]
113113
RetryConnectionCallback: TypeAlias = Callable[
114114
[],
115115
Coroutine[Any, Any, Any],
@@ -472,7 +472,7 @@ async def close(
472472

473473
# Clear the session in transports
474474
# This will get us GC'd, so this should be the last thing.
475-
await self._close_session_callback(self)
475+
self._close_session_callback(self)
476476

477477
def _start_buffered_message_sender(
478478
self,

0 commit comments

Comments
 (0)