Skip to content

Commit

Permalink
Avoid numpy type usage on the wire
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jun 1, 2021
1 parent 931f88f commit e4f25f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions piker/data/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ async def allocate_persistent_feed(
times = shm.array['time']
delay_s = times[-1] - times[times != times[-1]][-1]

# pass OHLC sample rate in seconds
init_msg[symbol]['sample_rate'] = delay_s
# pass OHLC sample rate in seconds (be sure to use python int type)
init_msg[symbol]['sample_rate'] = int(delay_s)

# yield back control to starting nursery
task_status.started((init_msg, first_quote))
Expand Down

0 comments on commit e4f25f1

Please sign in to comment.