It came up the first time I tried to test on a dev instance.
return Ok(false);
}
} else {
- assert!(self.feeds.contains_key(id),
- "Shouldn't be extending a feed we've never fetched")
+ if !self.feeds.contains_key(id) {
+ // We might be called on to extend a feed that we've
+ // not yet fetched for the first time, if a streaming
+ // notification comes in before the user has yet taken
+ // us into the activity reading that feed. If so,
+ // ignore the event; the _actual_ initial fetch will
+ // deal with it later.
+ return Ok(false);
+ }
}
let req = match id {