Skip to content

Commit

Permalink
Version 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimach committed Jul 26, 2024
1 parent 5e7139c commit eb1a747
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rtracy"
version = "0.1.0"
version = "0.1.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
8 changes: 6 additions & 2 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl ServerContext<'_> {
loop {
let e1: Result<UTracyEvent, DecodeError> = bincode::decode_from_reader(&mut self.events_data, BINCODE_CONFIG);
if e1.is_err() {
println!("Read done");
println!("Reached end of file");
break;
}
let event = e1.unwrap();
Expand Down Expand Up @@ -94,7 +94,11 @@ impl ServerContext<'_> {
}
}
self.flush_buffer()?;
while self.process_query()? {
println!("Sending done, wait 20 seconds to handle queries");
for _i in 0..2 {
if !self.process_query()? {
return Ok(());
}
sleep(Duration::from_millis(10));
}

Expand Down

0 comments on commit eb1a747

Please sign in to comment.