Skip to content

Commit

Permalink
compiler panic
Browse files Browse the repository at this point in the history
  • Loading branch information
davepacheco committed Oct 16, 2023
1 parent c06c1be commit 8650521
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions nexus/db-model/src/inventory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ pub struct InvCollection {
pub time_started: DateTime<Utc>,
pub time_done: DateTime<Utc>,
pub collector: String,
pub comment: String,
}

impl<'a> From<&'a Collection> for InvCollection {
Expand All @@ -155,7 +154,6 @@ impl<'a> From<&'a Collection> for InvCollection {
time_started: c.time_started,
time_done: c.time_done,
collector: c.collector.clone(),
comment: c.comment.clone(),
}
}
}
Expand Down
1 change: 0 additions & 1 deletion nexus/db-model/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,6 @@ table! {
time_started -> Timestamptz,
time_done -> Timestamptz,
collector -> Text,
comment -> Text,
}
}

Expand Down
5 changes: 1 addition & 4 deletions nexus/inventory/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ pub struct CollectionBuilder {
errors: Vec<anyhow::Error>,
time_started: DateTime<Utc>,
collector: String,
comment: String,
baseboards: BTreeSet<Arc<BaseboardId>>,
cabooses: BTreeSet<Arc<Caboose>>,
sps: BTreeMap<Arc<BaseboardId>, ServiceProcessor>,
Expand All @@ -37,12 +36,11 @@ pub struct CollectionBuilder {
}

impl CollectionBuilder {
pub fn new(collector: &str, comment: &str) -> Self {
pub fn new(collector: &str) -> Self {
CollectionBuilder {
errors: vec![],
time_started: Utc::now(),
collector: collector.to_owned(),
comment: comment.to_owned(),
baseboards: BTreeSet::new(),
cabooses: BTreeSet::new(),
sps: BTreeMap::new(),
Expand All @@ -58,7 +56,6 @@ impl CollectionBuilder {
time_started: self.time_started,
time_done: Utc::now(),
collector: self.collector,
comment: self.comment,
baseboards: self.baseboards,
cabooses: self.cabooses,
sps: self.sps,
Expand Down
1 change: 0 additions & 1 deletion nexus/src/app/background/inventory_collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ async fn inventory_activate(
// Run a collection.
let inventory = nexus_inventory::Collector::new(
creator,
"activation", // XXX-dap useless
&mgs_clients,
);
let collection =
Expand Down
2 changes: 0 additions & 2 deletions nexus/types/src/inventory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ pub struct Collection {
pub time_done: DateTime<Utc>,
/// name of the agent doing the collecting (generally, this Nexus's uuid)
pub collector: String,
/// reason for triggering this collection
pub comment: String,

pub baseboards: BTreeSet<Arc<BaseboardId>>,
pub cabooses: BTreeSet<Arc<Caboose>>,
Expand Down
1 change: 0 additions & 1 deletion schema/crdb/dbinit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2590,7 +2590,6 @@ CREATE TABLE IF NOT EXISTS inv_collection (
time_started TIMESTAMPTZ NOT NULL,
time_done TIMESTAMPTZ NOT NULL,
collector TEXT NOT NULL,
comment TEXT NOT NULL
);
-- Supports finding latest collection (to use) or the oldest collection (to
-- clean up)
Expand Down

0 comments on commit 8650521

Please sign in to comment.