11 Commits

Author SHA1 Message Date
Raja Subramanian
b7c4dc5f45 More precise proto proxy timing. (#859)
* More precise proto proxy timing.

It is possible that update function takes some time. Due to that the
next cycle could see less than refresh interval since refresh and skip a
cycle.

That could end up adding an extra cycle.

* clean up

* clean up
2024-10-16 17:59:19 +05:30
Paul Wells
1ac3b74d03 clean up unused utils (#819)
* clean up unused utils

* cleanup
2024-09-20 23:07:11 -07:00
Denys Smirnov
92c5e52943 Update usage of core.Fuse. (#621) 2024-02-27 22:10:02 +02:00
Paul Wells
a9e0faf6f0 allow intercepting logging (#609)
* allow intercepting logging

* roll back nats
2024-02-20 20:46:29 -08:00
Raja Subramanian
cee767e2d9 Close await chan when there is no change in message. (#603)
* Close await chan when there is no change in message.

Else, call sites waiting on update to be applied could hang.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-13 13:13:47 +05:30
Raja Subramanian
a0e8241b1a Return a clon of message so that internal field does not get mutated by (#565)
some body else modifying using the reference.
2024-01-05 16:47:49 +05:30
Paul Wells
e3a3fe05e3 allow waiting for protoproxy update (#560) 2023-12-30 01:41:02 -08:00
David Zhao
1cc5a5d915 Fix rare race condition with missed protoproxy update. (#424)
Also do not update refreshedAt unless content has changed
2023-07-19 14:31:52 -07:00
Raja Subramanian
9d0d6c9e94 Do not update if the model does not change. (#423)
* Do not update if the model does not change.

* No need for equality function

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-15 13:58:01 +05:30
David Zhao
7d128913f3 Create missed queueUpdate channel for ProtoProxy (#402)
This caused immediate updates to not go through right away.
2023-06-10 20:06:50 -07:00
David Zhao
a68f38ce7d Added ProtoProxy util, NumPublishers field (#358)
ProtoProxy achieves two goals:
- avoids needless regeneration of readonly protobufs
- update certain changes periodically
2023-04-22 20:25:51 -07:00