Skip to content

Commit bb0f689

Browse files
authored
Nexus must hang onto qorb resolvers used for MGS updates (#8466)
1 parent 90c578a commit bb0f689

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

nexus/src/app/mod.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,18 @@ pub struct Nexus {
269269

270270
/// reports status of pending MGS-managed updates
271271
mgs_update_status_rx: watch::Receiver<MgsUpdateDriverStatus>,
272+
273+
/// DNS resolver used by MgsUpdateDriver for MGS
274+
// We don't need to do anything with this, but we can't let it be dropped
275+
// while Nexus is running.
276+
#[allow(dead_code)]
277+
mgs_resolver: Box<dyn qorb::resolver::Resolver>,
278+
279+
/// DNS resolver used by MgsUpdateDriver for Repo Depot
280+
// We don't need to do anything with this, but we can't let it be dropped
281+
// while Nexus is running.
282+
#[allow(dead_code)]
283+
repo_depot_resolver: Box<dyn qorb::resolver::Resolver>,
272284
}
273285

274286
impl Nexus {
@@ -496,6 +508,8 @@ impl Nexus {
496508
)),
497509
tuf_artifact_replication_tx,
498510
mgs_update_status_rx,
511+
mgs_resolver,
512+
repo_depot_resolver,
499513
};
500514

501515
// TODO-cleanup all the extra Arcs here seems wrong

0 commit comments

Comments
 (0)