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
address earlier pr comments
author
phil
date
4 months ago
(Feb 2, 2026, 12:30 PM -0500)
commit
0d121dbe
0d121dbe76f0cb80827ae20e4137c2923dc5f4fe
parent
c0414d12
c0414d121ea0886748ef741e4f5ee216054b16f1
+7
-13
3 changed files
Expand all
Collapse all
Unified
Split
slingshot
src
server.rs
spacedust
src
main.rs
ufos
src
main.rs
+1
-1
slingshot/src/server.rs
Reviewed
···
755
755
)
756
756
.await
757
757
} else {
758
758
-
run(TcpListener::bind(bind.to_string()), app, shutdown).await
758
758
+
run(TcpListener::bind(bind), app, shutdown).await
759
759
}
760
760
}
761
761
+3
-6
spacedust/src/main.rs
Reviewed
···
138
138
}
139
139
140
140
fn install_metrics_server(
141
141
-
bind_metrics: std::net::SocketAddr,
141
141
+
bind: std::net::SocketAddr,
142
142
) -> Result<(), metrics_exporter_prometheus::BuildError> {
143
143
log::info!("installing metrics server...");
144
144
PrometheusBuilder::new()
···
146
146
.set_bucket_duration(std::time::Duration::from_secs(300))?
147
147
.set_bucket_count(std::num::NonZero::new(12).unwrap()) // count * duration = 60 mins. stuff doesn't happen that fast here.
148
148
.set_enable_unit_suffix(false) // this seemed buggy for constellation (sometimes wouldn't engage)
149
149
-
.with_http_listener(bind_metrics)
149
149
+
.with_http_listener(bind)
150
150
.install()?;
151
151
-
log::info!(
152
152
-
"metrics server installed! listening on http://{}",
153
153
-
bind_metrics
154
154
-
);
151
151
+
log::info!("metrics server installed! listening on {bind}");
155
152
Ok(())
156
153
}
+3
-6
ufos/src/main.rs
Reviewed
···
165
165
Ok(())
166
166
}
167
167
168
168
-
fn install_metrics_server(bind_metrics: std::net::SocketAddr) -> anyhow::Result<()> {
168
168
+
fn install_metrics_server(bind: std::net::SocketAddr) -> anyhow::Result<()> {
169
169
log::info!("installing metrics server...");
170
170
PrometheusBuilder::new()
171
171
.set_quantiles(&[0.5, 0.9, 0.99, 1.0])?
172
172
.set_bucket_duration(Duration::from_secs(60))?
173
173
.set_bucket_count(std::num::NonZero::new(10).unwrap()) // count * duration = 10 mins. stuff doesn't happen that fast here.
174
174
.set_enable_unit_suffix(false) // this seemed buggy for constellation (sometimes wouldn't engage)
175
175
-
.with_http_listener(bind_metrics)
175
175
+
.with_http_listener(bind)
176
176
.install()?;
177
177
-
log::info!(
178
178
-
"metrics server installed! listening on http://{}",
179
179
-
bind_metrics
180
180
-
);
177
177
+
log::info!("metrics server installed! listening on {bind}");
181
178
Ok(())
182
179
}
183
180