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