node: Preserve tracking policy on startup
We were needlessly overwriting the policy if it was set to "trusted".
This commit is contained in:
parent
bd04826223
commit
b51d491ad9
|
|
@ -385,11 +385,13 @@ where
|
|||
for rid in self.storage.inventory()? {
|
||||
self.routing.insert(rid, self.node_id(), time.as_millis())?;
|
||||
|
||||
if self
|
||||
.track_repo(&rid, tracking::Scope::All)
|
||||
.expect("Service::command: error tracking repository")
|
||||
{
|
||||
info!(target: "service", "Tracking local repository {rid}");
|
||||
if !self.is_tracking(&rid)? {
|
||||
if self
|
||||
.track_repo(&rid, tracking::Scope::Trusted)
|
||||
.expect("Service::initialize: error tracking repository")
|
||||
{
|
||||
info!(target: "service", "Tracking local repository {rid}");
|
||||
}
|
||||
}
|
||||
}
|
||||
// Setup subscription filter for tracked repos.
|
||||
|
|
|
|||
Loading…
Reference in New Issue