Skip to content

Commit

Permalink
Reschedule BGP announcements download immediately after restart. #1137
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Bruijnzeels committed Oct 17, 2023
1 parent 138f7cb commit 5a0acc3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/daemon/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,15 @@ impl Scheduler {
self.tasks
.schedule_missing(Task::RenewObjectsIfNeeded, now())
.map_err(FatalError)?;
self.tasks
.schedule_missing(Task::RefreshAnnouncementsInfo, now())
.map_err(FatalError)?;

// BGP announcement info is only kept in-memory, so it
// is lost after a restart, so schedule refreshing this
// immediately.
if self.config.bgp_risdumps_enabled {
self.tasks
.schedule(Task::RefreshAnnouncementsInfo, now())
.map_err(FatalError)?;
}

#[cfg(feature = "multi-user")]
self.tasks
Expand Down

0 comments on commit 5a0acc3

Please sign in to comment.