Use tractor settings for qtractor

syseng_tweaks
Tyler Goodlet 2021-05-24 08:32:49 -04:00
parent 74b4b4b130
commit f6f4a0cd8d
1 changed files with 5 additions and 1 deletions

View File

@ -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():