Skip to content

Commit

Permalink
Fix AbstractTokenProvider.token example (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtomilov authored Aug 25, 2023
1 parent abd39be commit 85c0590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiokafka/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async def token(self):
class CustomTokenProvider(AbstractTokenProvider):
async def token(self):
return asyncio.get_running_loop().run_in_executor(
return await asyncio.get_running_loop().run_in_executor(
None, self._token)
def _token(self):
Expand Down

0 comments on commit 85c0590

Please sign in to comment.