desctruct info for exporter
parent
ba82d59c74
commit
f6ad632c2d
|
|
@ -5,6 +5,7 @@ use tokio_postgres::NoTls;
|
|||
use std::env;
|
||||
use anyhow::Result;
|
||||
use log::{info, error};
|
||||
use std::ops::Drop;
|
||||
|
||||
/// An entity which handles DB connections.
|
||||
///
|
||||
|
|
@ -101,4 +102,10 @@ impl Exporter {
|
|||
Ok(metrics.get_bytes_len())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
impl Drop for Exporter {
|
||||
fn drop(&mut self) {
|
||||
info!("Deinitializng Exporter and DB connection pool ...")
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue