Make `FeedInit.shm_write_opts` an empty dict by default

master
Tyler Goodlet 2023-05-16 16:30:30 -04:00
parent f20e2d6ee2
commit b096ee3b7a
1 changed files with 5 additions and 1 deletions

View File

@ -49,7 +49,11 @@ class FeedInit(Struct, frozen=True):
'''
mkt_info: MktPair
shm_write_opts: dict[str, Any] | None = None
# NOTE: only field we use rn in ``.data.feed``
# TODO: maybe make a SamplerConfig(Struct)?
shm_write_opts: dict[str, Any] = {}
# 'sum_tick_vlm': True
def validate_backend(