tangled
alpha
login
or
join now
bad-example.com
/
microcosm-links
7
fork
atom
APIs for links and references in the ATmosphere
7
fork
atom
overview
issues
pulls
pipelines
add docs for `instant` param
bad-example.com
8 months ago
64db2f7f
2dbe6f88
+11
1 changed file
expand all
collapse all
unified
split
spacedust
src
server.rs
+11
spacedust/src/server.rs
···
287
287
#[derive(Deserialize, JsonSchema)]
288
288
#[serde(rename_all = "camelCase")]
289
289
struct ScalarSubscribeQuery {
290
290
+
/// Bypass the 21-sec delay buffer
291
291
+
///
292
292
+
/// By default, spacedust holds all firehose links for 21 seconds before
293
293
+
/// emitting them, to prevent quickly- undone interactions from generating
294
294
+
/// notifications.
295
295
+
///
296
296
+
/// Setting `instant` to true bypasses this buffer, allowing faster (and
297
297
+
/// noisier) notification delivery.
298
298
+
///
299
299
+
/// Typically [a little less than 1%](https://bsky.app/profile/bad-example.com/post/3ls32wctsrs2l)
300
300
+
/// of links links get deleted within 21s of being created.
290
301
#[serde(default)]
291
302
pub instant: bool,
292
303
}