Skip to content

Commit

Permalink
Update worker.rst (#1589)
Browse files Browse the repository at this point in the history
  • Loading branch information
NiloofarShahbaz committed Dec 8, 2020
1 parent c7ea04f commit 945b8ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/topics/worker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ name. We recommend you use ProtocolTypeRouter and ChannelNameRouter (see
application = ProtocolTypeRouter({
...
"channel": ChannelNameRouter({
"thumbnails-generate": consumers.GenerateConsumer,
"thumbnails-delete": consumers.DeleteConsumer,
"thumbnails-generate": consumers.GenerateConsumer.as_asgi(),
"thumbnails-delete": consumers.DeleteConsumer.as_asgi(),
}),
})
Expand Down

0 comments on commit 945b8ad

Please sign in to comment.