Skip to content

Commit

Permalink
Update database status for NRTMv4 client success
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsasha committed Nov 13, 2024
1 parent 7637280 commit 6299d9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions irrd/mirroring/nrtm4/nrtm4_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ def _run_client(self) -> bool:
next_key=unf.next_signing_key,
previous_file_hashes=self._validate_aggregate_previous_file_hashes_from_unf(unf),
)
if self.last_status != new_status:
self.database_handler.record_nrtm4_client_status(
self.source,
new_status,
)
self.database_handler.record_nrtm4_client_status(
self.source,
new_status,
)
return has_loaded_snapshot

def _retrieve_unf(self) -> Tuple[NRTM4UpdateNotificationFile, Optional[str]]:
Expand Down
1 change: 0 additions & 1 deletion irrd/storage/database_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,6 @@ def finalise_transaction(self):
nrtm4_client_current_key=status.current_key,
nrtm4_client_next_key=status.next_key,
nrtm4_client_previous_file_hashes=status.previous_file_hashes,
rpsl_data_updated=datetime.now(timezone.utc),
)
)
self.database_handler.execute_statement(stmt)
Expand Down

0 comments on commit 6299d9b

Please sign in to comment.