Skip to content

Commit

Permalink
Changed API call
Browse files Browse the repository at this point in the history
  • Loading branch information
vladvildanov committed Dec 9, 2024
1 parent 3f49f4a commit 63059d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ async def listen(self, event: AsyncBeforeCommandExecutionEvent):
if self._current_cred is None:
self._current_cred = event.initial_cred

credentials = await event.credential_provider.get_credentials_async()
credentials = event.credential_provider.get_credentials()

if hash(credentials) != self._current_cred:
self._current_cred = hash(credentials)
Expand Down

0 comments on commit 63059d6

Please sign in to comment.