Skip to content

Commit

Permalink
tmp removed env for ws url and added commit filter
Browse files Browse the repository at this point in the history
  • Loading branch information
damiensedgwick committed Nov 14, 2024
1 parent 6fbe9f9 commit 0d1127c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages-rs/drainpipe/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
FRONTPAGE_CONSUMER_URL="http://localhost:3000/api/receive_hook"
JETSTREAM_URL="wss://jetstream1.us-east.bsky.network/subscribe"
FRONTPAGE_CONSUMER_URL="http://localhost:3000/api/receive_hook"
6 changes: 3 additions & 3 deletions packages-rs/drainpipe/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use futures_util::stream::StreamExt;
use std::env;
use std::error::Error;
use std::time::Duration;
use tokio::time::timeout;
use tokio_tungstenite::{connect_async, tungstenite::protocol::Message};

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let url = env::var("JETSTREAM_URL")
.unwrap_or("wss://jetstream1.us-west.bsky.network/subscribe".to_string());
let url =
"wss://jetstream1.us-west.bsky.network/subscribe?wantedCollections=fyi.unravel.frontpage"
.to_string();

let mut reconnect_attempts = 0;
let max_reconnect_attempts = 5;
Expand Down

0 comments on commit 0d1127c

Please sign in to comment.