Skip to content

Commit

Permalink
fix: update lock
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jan 8, 2024
1 parent 32d1db5 commit ad608e1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
18 changes: 14 additions & 4 deletions wrappers/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions wrappers/src/fdw/cognito_fdw/cognito_client/rows_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,10 @@ impl Iterator for RowsIterator {
fn next(&mut self) -> Option<Self::Item> {
if let Some(row) = self.get_next_row() {
Some(Ok(row))
} else if self.have_more_rows {
self.fetch_rows_batch().transpose()
} else {
if self.have_more_rows {
self.fetch_rows_batch().transpose()
} else {
None
}
None
}
}
}
4 changes: 2 additions & 2 deletions wrappers/src/fdw/cognito_fdw/cognito_fdw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ impl ForeignDataWrapper<CognitoFdwError> for CognitoFdw {

stats::inc_stats(Self::FDW_NAME, stats::Metric::CreateTimes, 1);
Ok(Self {
client: client,
user_pool_id: user_pool_id,
client,
user_pool_id,
rows_iterator: None,
})
}
Expand Down

0 comments on commit ad608e1

Please sign in to comment.