Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
levkk committed Jan 29, 2025
1 parent de0bf60 commit f9889e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgdog/src/backend/replication/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl Buffer {
// Make sure we send a Relation message identifying the table
// we're sending changes for.
let oid = self.oid.ok_or(Error::NoRelationMessage)?;
if self.sent_relations.get(&oid).is_none() {
if !self.sent_relations.contains(&oid) {
let relation = self.relations.get(&oid).ok_or(Error::NoRelationMessage)?;
// Rewind the clock on the Relation message to simulate
// like Postgres sent it in this transaction.
Expand Down

0 comments on commit f9889e0

Please # to comment.