Skip to content

Commit

Permalink
chore: fix more
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx committed Apr 11, 2024
1 parent b450502 commit 0372b40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ impl<Src: OpendalSource> SplitEnumerator for OpendalEnumerator<Src> {

impl<Src: OpendalSource> OpendalEnumerator<Src> {
pub async fn list(&self) -> ConnectorResult<ObjectMetadataIter> {
let prefix = self.prefix.as_ref().unwrap_or_default();
let prefix = match &self.prefix {
Some(prefix) => prefix,
None => "",
};

let object_lister = self
.op
Expand Down
2 changes: 1 addition & 1 deletion src/utils/pgwire/src/pg_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ where
self.unnamed_portal.replace(portal);
} else {
assert!(
self.result_cache.get(&portal_name).is_none(),
!self.result_cache.contains_key(&portal_name),
"Named portal never can be overridden."
);
self.portal_store.insert(portal_name.clone(), portal);
Expand Down

0 comments on commit 0372b40

Please sign in to comment.