Skip to content

Commit b8ec927

Browse files
author
avandras
committed
Make argument which we do not use optional
1 parent e6eb8ef commit b8ec927

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patroni/multisite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def status(self) -> Dict[str, Any]:
6363
def should_failover(self) -> bool:
6464
return False
6565

66-
def on_shutdown(self, checkpoint_location: int):
66+
def on_shutdown(self, checkpoint_location: Optional[int]):
6767
pass
6868

6969

@@ -172,7 +172,7 @@ def release(self):
172172
def should_failover(self):
173173
return self._failover_target is not None and self._failover_target != self.name
174174

175-
def on_shutdown(self, checkpoint_location: int):
175+
def on_shutdown(self, checkpoint_location: Optional[int]):
176176
""" Called when shutdown for multisite failover has completed.
177177
"""
178178
# TODO: check if we replicated everything to standby site

0 commit comments

Comments
 (0)