Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: calling update_callback if set
Browse files Browse the repository at this point in the history
pradeepranwa1 committed Jul 4, 2024
1 parent 736fccd commit 3f826d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions postgresql_watcher/watcher.py
Original file line number Diff line number Diff line change
@@ -146,6 +146,8 @@ def should_reload(self):
if self.parent_conn.poll(None):
message = self.parent_conn.recv()
self.logger.debug(f"message:{message}")
if self.update_callback:
self.update_callback()
return True
except EOFError:
self.logger.warning(

0 comments on commit 3f826d9

Please sign in to comment.