-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added timer to trigger send if no incoming transactions trigger it
This should alleviate a point of confusion when users expected that we send data every x seconds. Instead, we only sent data every x seconds if there were incoming transactions. If no transactions were happening, no data was sent (including existing transactions on the queue). This PR aligns the behaviour with user expectations. The trade-offs are: * slightly more resource consumption due to the timer thread * collection can either happen on the main thread, or on the timer thread, depending on whether the timer or an incoming transaction triggers collection.
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters