Skip to content

Commit 945b8ad

Browse files
Update worker.rst (#1589)
1 parent c7ea04f commit 945b8ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/topics/worker.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ name. We recommend you use ProtocolTypeRouter and ChannelNameRouter (see
5858
application = ProtocolTypeRouter({
5959
...
6060
"channel": ChannelNameRouter({
61-
"thumbnails-generate": consumers.GenerateConsumer,
62-
"thumbnails-delete": consumers.DeleteConsumer,
61+
"thumbnails-generate": consumers.GenerateConsumer.as_asgi(),
62+
"thumbnails-delete": consumers.DeleteConsumer.as_asgi(),
6363
}),
6464
})
6565

0 commit comments

Comments
 (0)