Skip to content

Commit 77909cb

Browse files
committed
Applying Copilot's comments
1 parent 9766538 commit 77909cb

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

redis/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ def execute(self, raise_on_error: bool = True) -> List[Any]:
16621662
lambda error: self._disconnect_raise_on_watching(conn, error),
16631663
)
16641664
finally:
1665-
# in reset() the connection is diconnected before returned to the pool if
1665+
# in reset() the connection is disconnected before returned to the pool if
16661666
# it is marked for reconnect.
16671667
self.reset()
16681668

redis/retry.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import logging
21
import socket
32
from time import sleep
43
from typing import TYPE_CHECKING, Any, Callable, Iterable, Tuple, Type, TypeVar
@@ -87,7 +86,6 @@ def call_with_retry(
8786
try:
8887
return do()
8988
except self._supported_errors as error:
90-
logging.warning(f"******** Retry.call_with_retry: {error}")
9189
failures += 1
9290
fail(error)
9391
if self._retries >= 0 and failures > self._retries:

0 commit comments

Comments
 (0)