diff options
Diffstat (limited to 'src/document/sync.rs')
| -rw-r--r-- | src/document/sync.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/document/sync.rs b/src/document/sync.rs index e1caaef..805d1f9 100644 --- a/src/document/sync.rs +++ b/src/document/sync.rs @@ -101,6 +101,11 @@ impl Received { })) } + /// Where the sender says it stands, as a keepalive would say it. + pub(crate) fn stands(&self) -> crate::transport::HeadsSummary { + crate::transport::HeadsSummary::of(self.heads().to_vec()) + } + /// The sender's heads, as it says. pub(crate) fn heads(&self) -> &[crate::document::ChangeHash] { &self.0.heads |
