diff options
Diffstat (limited to 'src/federation')
| -rw-r--r-- | src/federation/held.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/federation/held.rs b/src/federation/held.rs index 856a2f6..7f68424 100644 --- a/src/federation/held.rs +++ b/src/federation/held.rs @@ -906,7 +906,13 @@ pub(crate) async fn run_worker(state: crate::state::AppState) { } else { Vec::new() }; + // A rejoin's document isn't the node's until it follows the epoch + // (`Holding::follows`): nothing of it is read, nor written on it, till then. + let rejoining = state.remake.is_rejoining(); let read = tokio::task::spawn_blocking(move || { + if rejoining { + return (false, Vec::new(), Vec::new()); + } holding.look(&refused); // Read from the document under its lock; taken without it. let unread = { |
