···110110- [x] handle shutdown cleanly -- be nice to rocksdb
111111- [x] add user-agent to jetstream request
112112- [ ] wow the shutdown stuff i wrote is really bad and doesn't work a lot
113113-- [~] serve html for browser requests
113113+- [x] serve html for browser requests
114114- [ ] add a health check endpoint
115115- [ ] add seq numbers to metrics
116116- [ ] persist the jetstream server url, error if started with a different one (maybe with --switch-streams or something)
117117- [ ] put delete-account tasks into a separate (persisted?) task queue for the writer so it can work on them incrementally.
118118+- [ ] jetstream: connect retry: only reset counter after some *time* has passed.
118119119120data fixes
120121- [x] add rkey to linkers 🤦♀️
+4-1
link_aggregator/src/consumer/jetstream.rs
···9898 let mut socket = match tungstenite::client_tls(req, tcp_stream) {
9999 Ok((socket, _)) => {
100100 println!("jetstream connected.");
101101- connect_retries = 0;
101101+ // connect_retries = 0; // only reset once we have received a message vvv
102102 socket
103103 }
104104 Err(e) => {
···271271 latest_cursor = Some(ts);
272272 gauge!("jetstream_cursor_age", "url" => stream.clone())
273273 .set(ts_age(ts).as_micros() as f64);
274274+275275+ // great news if we got this far -- might be safe to assume the connection is up.
276276+ connect_retries = 0;
274277 }
275278 }
276279 Ok(())