Use rustls

This commit is contained in:
asonix
2020-03-16 13:27:42 -05:00
parent b7bf001287
commit 7f45021afb
4 changed files with 110 additions and 72 deletions
+6
View File
@@ -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;
-1
View File
@@ -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()?;