Skip to content

Commit

Permalink
persist: properly return Since errors from ReadHandle::snapshot (Mate…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Loiselle authored Aug 9, 2022
1 parent 31523fd commit 0e2c93a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/persist-client/src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,7 @@ where
) -> Result<Vec<ReaderEnrichedHollowBatch<T>>, Since<T>> {
let mut machine = self.machine.clone();

let batches = machine
.snapshot(&as_of)
.await
.expect("ReadHandle should validate `as_of` valid before generating Subscribe");
let batches = machine.snapshot(&as_of).await?;

let r = batches
.into_iter()
Expand Down

0 comments on commit 0e2c93a

Please sign in to comment.