Publish podcasts after the first device sync on restart
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
abd100d6e7
commit
0e985b4267
8 files changed
+328
-27
No files matched your search
@@ -551,9 +551,12 @@ impl Federation {
|
||||
));
|
||||
|
||||
// Public podcast discovery: the server node publishes the podcasts
|
||||
// accounts explicitly shared (see `crate::podcasts::discovery`).
|
||||
// accounts explicitly shared (see `crate::podcasts::discovery`),
|
||||
// after the first device-sync round of this run.
|
||||
let (first_device_sync_done, first_device_sync) = tokio::sync::watch::channel(false);
|
||||
let podcast_discovery =
|
||||
podcast_discovery::start(&service, &self.data_dir, pool.clone()).await;
|
||||
podcast_discovery::start(&service, &self.data_dir, pool.clone(), first_device_sync)
|
||||
.await;
|
||||
let podcast_dht = podcast_discovery
|
||||
.as_ref()
|
||||
.map(|discovery| Arc::clone(&discovery.dht));
|
||||
@@ -612,6 +615,7 @@ impl Federation {
|
||||
Arc::clone(&service),
|
||||
device_hub,
|
||||
Arc::clone(&self.transport_stats),
|
||||
first_device_sync_done,
|
||||
));
|
||||
let capabilities_acceptor = service
|
||||
.stream_acceptor(CAPABILITIES_ALPN)
|
||||
|
||||
Reference in new issue
Block a user