This commit is contained in:
41666 2022-12-09 11:16:53 -05:00
parent 93bccd3b19
commit 05e30e4420
4 changed files with 1 additions and 10 deletions

View file

@ -14,8 +14,6 @@ use tokio_tungstenite::{connect_async, tungstenite::Message};
mod translators;
lazy_static! {
// static ref PAIR: String = env::var("PAIR").unwrap_or_default();
// static ref ROLE: String = env::var("ROLE").unwrap_or("primary".to_string());
static ref WS_ADDR: String = env::var("WS_ADDR").unwrap_or_default();
static ref PG: AsyncOnce<sqlx::PgPool> = AsyncOnce::new(async {
let db_url = std::env::var("DATABASE_URL")
@ -77,11 +75,6 @@ struct AnalyticsEvent {
event_name: String,
}
// async fn track_pop(pop_event: PopEvent) {
// track_pop_db(pop_event.clone()).await;
// track_pop_redis(pop_event).await;
// }
async fn track_pop(pop_event: PopEvent) {
// println!("[ws/track_pop]");
let pool = PG.get().await;