+3
-1
cozy-setup (move to another repo).md
+3
-1
cozy-setup (move to another repo).md
···
+3
-1
link_aggregator/readme.md
+3
-1
link_aggregator/readme.md
···- [x] handle jetstream restart: don't miss events (currently sketch: rewinds cursor by 1us so we will always double-count at least one event)- [x] especially: figure out what the risk is to rotating to another jetstream server in terms of gap/overlap from a different jetstream instance's cursor (follow up separately)···- [ ] persist the jetstream server url, error if started with a different one (maybe with --switch-streams or something)
···- [x] handle jetstream restart: don't miss events (currently sketch: rewinds cursor by 1us so we will always double-count at least one event)- [x] especially: figure out what the risk is to rotating to another jetstream server in terms of gap/overlap from a different jetstream instance's cursor (follow up separately)···- [ ] persist the jetstream server url, error if started with a different one (maybe with --switch-streams or something)+- [ ] put delete-account tasks into a separate (persisted?) task queue for the writer so it can work on them incrementally.
+13
-1
link_aggregator/src/consumer/jetstream.rs
+13
-1
link_aggregator/src/consumer/jetstream.rs
······counter!("jetstream_connect", "url" => stream.clone(), "is_retry" => (connect_retries > 0).to_string()).increment(1);println!("jetstream connecting, attempt #{connect_retries}, {stream_url:?} with user-agent: {ua:?}");
······+let tcp_stream = std::net::TcpStream::connect_timeout(&addr, time::Duration::from_secs(8))?; // TODO: handlecounter!("jetstream_connect", "url" => stream.clone(), "is_retry" => (connect_retries > 0).to_string()).increment(1);println!("jetstream connecting, attempt #{connect_retries}, {stream_url:?} with user-agent: {ua:?}");