alpha
Login
or
Join now
microcosm.blue
/
microcosm-rs
Star
0
Fork
3
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
Star
0
Fork
3
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
count active subs
author
phil
date
1 year ago
(Jun 19, 2025, 4:41 PM -0400)
commit
607edbb3
607edbb379dec03f3555071b98aacb6e498fb4ce
parent
f2506603
f2506603a59398ccdc327637d35aa68a9907787a
+3
1 changed file
Expand all
Collapse all
Unified
Split
spacedust
src
subscriber.rs
+3
spacedust/src/subscriber.rs
Reviewed
···
40
40
41
41
// TODO: do we need to timeout ws sends??
42
42
43
43
+
metrics::gauge!("subscribers_connected_total").increment(1);
44
44
+
43
45
loop {
44
46
tokio::select! {
45
47
l = receiver.recv() => match l {
···
109
111
}
110
112
}
111
113
log::trace!("end of subscriber. bye!");
114
114
+
metrics::gauge!("subscribers_connected_total").decrement(1);
112
115
Ok(())
113
116
}
114
117