Skip to content

Commit

Permalink
Merge pull request #523 from Olegt0rr/fix-queue-name
Browse files Browse the repository at this point in the history
Fixed `queue_name` was set as `channel_name`
  • Loading branch information
mosquito committed Feb 18, 2023
2 parents fe1cbce + 1b927b3 commit 3e43331
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
- run: poetry run coveralls
env:
COVERALLS_PARALLEL: 'true'
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_SERVICE_NAME: github
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

finish:
Expand Down
8 changes: 4 additions & 4 deletions aio_pika/patterns/master.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,16 @@ async def on_message(
await message.nack(requeue=e.requeue)

async def create_queue(
self, channel_name: str, **kwargs: Any,
self, queue_name: str, **kwargs: Any,
) -> AbstractQueue:
return await self.channel.declare_queue(channel_name, **kwargs)
return await self.channel.declare_queue(queue_name, **kwargs)

async def create_worker(
self, channel_name: str, func: Callable[..., Any], **kwargs: Any,
self, queue_name: str, func: Callable[..., Any], **kwargs: Any,
) -> Worker:
""" Creates a new :class:`Worker` instance. """

queue = await self.create_queue(channel_name, **kwargs)
queue = await self.create_queue(queue_name, **kwargs)

if hasattr(func, "_is_coroutine"):
fn = func
Expand Down

0 comments on commit 3e43331

Please sign in to comment.