Use tractor settings for qtractor
parent
74b4b4b130
commit
f6f4a0cd8d
|
@ -42,7 +42,7 @@ import trio
|
||||||
import tractor
|
import tractor
|
||||||
from outcome import Error
|
from outcome import Error
|
||||||
|
|
||||||
from .._daemon import maybe_open_pikerd
|
from .._daemon import maybe_open_pikerd, _tractor_kwargs
|
||||||
from ..log import get_logger
|
from ..log import get_logger
|
||||||
from ._pg_overrides import _do_overrides
|
from ._pg_overrides import _do_overrides
|
||||||
|
|
||||||
|
@ -196,6 +196,10 @@ def run_qtractor(
|
||||||
'main': instance,
|
'main': instance,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# override tractor's defaults
|
||||||
|
tractor_kwargs.update(_tractor_kwargs)
|
||||||
|
|
||||||
# define tractor entrypoint
|
# define tractor entrypoint
|
||||||
async def main():
|
async def main():
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue