Update `msgpub` import from `tractor.experimental`
parent
296863348d
commit
bb8fade16f
|
@ -38,6 +38,7 @@ import contextlib
|
||||||
|
|
||||||
import trio
|
import trio
|
||||||
import tractor
|
import tractor
|
||||||
|
from tractor.experimental import msgpub
|
||||||
from async_generator import asynccontextmanager
|
from async_generator import asynccontextmanager
|
||||||
|
|
||||||
from ..log import get_logger, get_console_log
|
from ..log import get_logger, get_console_log
|
||||||
|
@ -98,7 +99,7 @@ class BrokerFeed:
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@tractor.trionics.msgpub(tasks=['stock', 'option'])
|
@msgpub(tasks=['stock', 'option'])
|
||||||
async def stream_poll_requests(
|
async def stream_poll_requests(
|
||||||
get_topics: Callable,
|
get_topics: Callable,
|
||||||
get_quotes: Coroutine,
|
get_quotes: Coroutine,
|
||||||
|
|
Loading…
Reference in New Issue