Skip to content

Commit

Permalink
[fix] pylama and add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Orlov committed Dec 15, 2017
1 parent 495de9e commit 1be966b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
1.7.0
-----

* `aio_pika.patterns` submodule
* `aio_pika.patterns.RPC` - RPC pattern
* `aio_pika.patterns.Master` - Master/Worker pattern

1.5.1
-----

Expand Down
6 changes: 2 additions & 4 deletions aio_pika/patterns/master.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,17 @@ class Master(Base):

__doc__ = """
Implements Master/Worker pattern.
Usage example
Usage example:
`worker.py` ::
master = Master(channel)
worker = await master.create_worker('test_worker', lambda x: print(x))
worker = await master.create_worker('test_worker', lambda x: print(x))
`master.py` ::
master = Master(channel)
await master.proxy.test_worker('foo')
"""

def __init__(self, channel: Channel):
Expand Down
2 changes: 1 addition & 1 deletion aio_pika/patterns/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class RPC(Base):

DLX_NAME = 'rpc.dlx'

__doc__ = """
__doc__ = """
Remote Procedure Call helper.
Create an instance ::
Expand Down

0 comments on commit 1be966b

Please sign in to comment.