Use rustls
This commit is contained in:
@@ -11,6 +11,12 @@ use std::collections::HashSet;
|
||||
pub struct HostError;
|
||||
|
||||
pub async fn listen(client: &Client) -> Result<(), Error> {
|
||||
info!("LISTEN new_blocks;");
|
||||
info!("LISTEN new_whitelists;");
|
||||
info!("LISTEN new_listeners;");
|
||||
info!("LISTEN rm_blocks;");
|
||||
info!("LISTEN rm_whitelists;");
|
||||
info!("LISTEN rm_listeners;");
|
||||
client
|
||||
.batch_execute(
|
||||
"LISTEN new_blocks;
|
||||
|
||||
@@ -64,7 +64,6 @@ async fn actor_route(state: web::Data<State>) -> Result<impl Responder, MyError>
|
||||
#[actix_rt::main]
|
||||
async fn main() -> Result<(), anyhow::Error> {
|
||||
dotenv::dotenv().ok();
|
||||
std::env::set_var("RUST_LOG", "debug");
|
||||
pretty_env_logger::init();
|
||||
|
||||
let pg_config: tokio_postgres::Config = std::env::var("DATABASE_URL")?.parse()?;
|
||||
|
||||
Reference in New Issue
Block a user