Skip to content

Commit

Permalink
Do not incrementally update server logs (too costly)
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Apr 4, 2024
1 parent 366bc3b commit 3ece6dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/view/text_log_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ impl TextLogView {
// (but respect the FLUSH_INTERVAL_MILLISECONDS)
let now = Local::now();
if max_query_end_microseconds.is_some()
&& (now - max_query_end_microseconds.unwrap()) >= flush_interval_milliseconds
&& ((now - max_query_end_microseconds.unwrap()) >= flush_interval_milliseconds
|| query_ids.is_none())
{
context
.lock()
Expand Down

0 comments on commit 3ece6dc

Please sign in to comment.