From 0e2c93a937e7b0e9db821c887961c3ebf4e2a2a7 Mon Sep 17 00:00:00 2001 From: Sean Loiselle Date: Tue, 9 Aug 2022 15:58:43 -0400 Subject: [PATCH] persist: properly return Since errors from ReadHandle::snapshot (#14149) --- src/persist-client/src/read.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/persist-client/src/read.rs b/src/persist-client/src/read.rs index a87cfc993d5c..58eb44d981d9 100644 --- a/src/persist-client/src/read.rs +++ b/src/persist-client/src/read.rs @@ -537,10 +537,7 @@ where ) -> Result>, Since> { 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()