diff options
Diffstat (limited to 'src/federation/held.rs')
| -rw-r--r-- | src/federation/held.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/federation/held.rs b/src/federation/held.rs index 39d6102..4846266 100644 --- a/src/federation/held.rs +++ b/src/federation/held.rs @@ -140,7 +140,7 @@ pub(crate) struct Voter { /// root; or still to be gathered of its peers, where the node was given neither. pub(crate) enum Begun { Set(Box<Set<Federation>>), - Start(super::store::passing::Start<Federation>), + Start(Box<super::store::passing::Start<Federation>>), } /// What carries the store: a document it is read from, or a set of events, which is @@ -397,7 +397,9 @@ impl Holding { let store = store.refusing(&own, &dropped, &writes); // A node of both kinds: the store in a set too, from here on. inner.store = Some(if self.of_a_set { - Carried::Set(Box::new(Set::new(store, self.keeps_forgotten))) + Carried::Set(Box::new( + Set::new(store, self.keeps_forgotten).pinned_at(self.pin), + )) } else { Carried::Store(Box::new(store)) }); @@ -1129,7 +1131,7 @@ impl Holding { ) -> Self { let holding = match begun { Some(Begun::Set(set)) => self.carrying(*set), - Some(Begun::Start(start)) => self.awaiting(start), + Some(Begun::Start(start)) => self.awaiting(*start), None => self, }; match path { |
