Commit f839f01
authored
fix: remove delay in publish_batch execution (#109)
The existing code creates futures for publish_batch with delays to
spread the rpc load evenly in the publish interval however due to the
Rust async design those futures do not get started unless they are
awaited. This results in additional deterministic latency of almost the
publish_interval especially for the publishers who publish many prices.
This change removes the code as even the intended behaviour adds latency
and disrupts the publish interval (the last publish_batch can block the
actor loop).1 parent 670c080 commit f839f01
3 files changed
+3
-11
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | 530 | | |
538 | 531 | | |
| 532 | + | |
539 | 533 | | |
540 | 534 | | |
541 | 535 | | |
542 | 536 | | |
543 | 537 | | |
544 | 538 | | |
545 | | - | |
546 | | - | |
547 | 539 | | |
548 | 540 | | |
549 | 541 | | |
| |||
0 commit comments