8go / 8go/nostr-commander-rs

Streaming data with fast updates

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
79
Forks
10
PR merge metrics
No merged PRs in 30d

Description

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..... _```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.