mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 02:36:29 +00:00
unnecessary
This commit is contained in:
@@ -350,10 +350,6 @@ impl Collector {
|
|||||||
// Average update times
|
// Average update times
|
||||||
let mut last_updated_avg: HashMap<usize, SystemTime> = HashMap::new();
|
let mut last_updated_avg: HashMap<usize, SystemTime> = HashMap::new();
|
||||||
|
|
||||||
for address_id in 0..get_number_of_addresses() {
|
|
||||||
last_updated_avg.insert(address_id, SystemTime::now());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Flush stats to StatsD and calculate averages every 15 seconds.
|
// Flush stats to StatsD and calculate averages every 15 seconds.
|
||||||
let tx = self.tx.clone();
|
let tx = self.tx.clone();
|
||||||
tokio::task::spawn(async move {
|
tokio::task::spawn(async move {
|
||||||
|
|||||||
Reference in New Issue
Block a user