Skip to content

Commit

Permalink
Fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
amigin committed Jun 30, 2022
1 parent b21152c commit b1fc3e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/background/metrics_updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,12 @@ impl MyTimerTick for MetricsUpdater {
self.app
.metrics
.update_fatal_errors_count(fatal_errors_count);

for reader in self.app.data_readers.get_all().await {
self.app
.metrics
.update_pending_to_sync(&reader.connection)
.await;
}
}
}
2 changes: 1 addition & 1 deletion src/data_readers/data_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl DataReader {
}
}

fn get_pending_to_send(&self) -> usize {
pub fn get_pending_to_send(&self) -> usize {
match &self.connection {
DataReaderConnection::Tcp(connection) => connection.get_pending_to_send(),
DataReaderConnection::Http(connection) => connection.get_pending_to_send(),
Expand Down

0 comments on commit b1fc3e8

Please sign in to comment.