Skip to content

Commit

Permalink
Update scrimlet status on upsert
Browse files Browse the repository at this point in the history
  • Loading branch information
smklein committed Jul 28, 2022
1 parent 2cb1563 commit d172c9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nexus/src/db/datastore/sled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ impl DataStore {
dsl::time_modified.eq(Utc::now()),
dsl::ip.eq(sled.ip),
dsl::port.eq(sled.port),
dsl::rack_id.eq(sled.rack_id),
dsl::is_scrimlet.eq(sled.is_scrimlet()),
))
.returning(Sled::as_returning())
.get_result_async(self.pool())
Expand Down

0 comments on commit d172c9c

Please sign in to comment.