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