diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-06-20 19:47:46 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-06-20 22:42:55 -0400 |
| commit | 7778cdf0c495a04f4f5f3f85b78348c8037a5771 (patch) | |
| tree | bd0e00d36ab1863f5609a3c0ee8936782ae794ca /src/message/history.rs | |
| parent | 639f4b422adb0a6fc809161dd816d8382cf88138 (diff) | |
Remove the snapshot fields from `/api/boot`.
Clients now _must_ construct their state from the event stream; it is no longer possible for them to delegate that work to the server.
Diffstat (limited to 'src/message/history.rs')
| -rw-r--r-- | src/message/history.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/message/history.rs b/src/message/history.rs index 1a72c08..7585e1c 100644 --- a/src/message/history.rs +++ b/src/message/history.rs @@ -27,12 +27,6 @@ impl History { self.message.clone() } - pub fn as_of(&self, resume_point: Sequence) -> Option<Message> { - self.events() - .filter(Sequence::up_to(resume_point)) - .collect() - } - // Snapshot of this message as of all events recorded in this history. pub fn as_snapshot(&self) -> Option<Message> { self.events().collect() |
