Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming data with fast updates #2

Open
feelancer21 opened this issue Jan 20, 2023 · 0 comments
Open

Streaming data with fast updates #2

feelancer21 opened this issue Jan 20, 2023 · 0 comments

Comments

@feelancer21
Copy link

I tested a little bit with the streaming data feature and realized that it's not possible to stream a logfile with a lot of updates in a small time frame. Then you see duplicates and some lines are missing.

If updates are coming in an interval of 1 second, then all is fine, like here
i=1; while true; do echo $i; i=$(expr $i + 1); sleep 1; [ $i -eq 10 ] && break; done | nostr-commander-rs --dm npub..... _

But if you sleep only 0.1 seconds then it does not work.
i=1; while true; do echo $i; i=$(expr $i + 1); sleep 0.1; [ $i -eq 10 ] && break; done | nostr-commander-rs --dm npub..... _

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant