mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 19:46:50 +00:00
Recompute feed as soon as we load more (it will grab from storage, then fill in from relays)
This commit is contained in:
parent
345f1c1848
commit
763473044e
@ -60,6 +60,10 @@ impl Feed {
|
||||
if let Some(event) = earliest_event {
|
||||
// Move the anchor back to the earliest event we have so far
|
||||
*self.current_feed_anchor.write() = event.created_at;
|
||||
|
||||
// Recompute now to get the storage data
|
||||
self.sync_recompute();
|
||||
|
||||
Ok(event.created_at)
|
||||
} else {
|
||||
Err(ErrorKind::LoadMoreFailed.into())
|
||||
|
Loading…
Reference in New Issue
Block a user