Skip to content

Commit

Permalink
Merge pull request #257 from AntonOellerer/fix/doc_app2
Browse files Browse the repository at this point in the history
fix: Yield after submitting nc command
  • Loading branch information
laysakura committed Mar 15, 2023
2 parents df23792 + ea4d536 commit 378893c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions springql/examples/doc_app2.rs
Expand Up @@ -34,6 +34,8 @@ fn send_data_to_pipeline() {
.arg(cmd_text)
.spawn()
.expect("send failed");
// yield s.t. the os can execute the command and the order of the messages is upheld
thread::sleep(Duration::from_millis(50));
}

send_row(r#"{"ts": "2022-01-01 13:00:00.000000000", "symbol": "ORCL", "amount": 10}"#);
Expand Down

0 comments on commit 378893c

Please sign in to comment.