File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ def delete_session(self, session_id: str) -> None:
232232 def _do () -> None :
233233 self ._request ("DELETE" , f"/v1/sessions/{ session_id } " )
234234
235- with_retry_sync (_do , self ._retry_config )
235+ return with_retry_sync (_do , self ._retry_config )
236236
237237 def list_messages (
238238 self , session_id : str , limit : int = 50 , offset : int = 0
@@ -443,7 +443,7 @@ async def delete_session(self, session_id: str) -> None:
443443 async def _do () -> None :
444444 await self ._request ("DELETE" , f"/v1/sessions/{ session_id } " )
445445
446- await with_retry (_do , self ._retry_config )
446+ return await with_retry (_do , self ._retry_config )
447447
448448 async def list_messages (
449449 self , session_id : str , limit : int = 50 , offset : int = 0
Original file line number Diff line number Diff line change 44
55import asyncio
66import random
7+ import time
78from dataclasses import dataclass , field
89from typing import TYPE_CHECKING , Callable , TypeVar
910
@@ -113,8 +114,6 @@ def with_retry_sync(
113114 Raises:
114115 The last exception if all retries are exhausted.
115116 """
116- import time
117-
118117 if config is None :
119118 config = DEFAULT_RETRY_CONFIG
120119
You can’t perform that action at this time.
0 commit comments