Skip to content

Commit

Permalink
fix(driver): drop next_page on page error (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Apr 19, 2023
1 parent fec7658 commit cdf6de6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion driver/src/rest_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ impl Stream for RestAPIRows {
let progress = QueryProgress::from(resp.stats.progresses);
Poll::Ready(Some(Ok(RowWithProgress::Progress(progress))))
}
Poll::Ready(Err(e)) => Poll::Ready(Some(Err(e))),
Poll::Ready(Err(e)) => {
self.next_page = None;
Poll::Ready(Some(Err(e)))
}
Poll::Pending => {
cx.waker().wake_by_ref();
Poll::Pending
Expand Down

0 comments on commit cdf6de6

Please sign in to comment.