Skip to content

Commit 1b3365f

Browse files
committed
Update scrimlet status on upsert
1 parent 2cb1563 commit 1b3365f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nexus/src/db/datastore/sled.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ impl DataStore {
3434
dsl::time_modified.eq(Utc::now()),
3535
dsl::ip.eq(sled.ip),
3636
dsl::port.eq(sled.port),
37+
dsl::rack_id.eq(sled.rack_id),
38+
dsl::is_scrimlet.eq(sled.is_scrimlet),
3739
))
3840
.returning(Sled::as_returning())
3941
.get_result_async(self.pool())

0 commit comments

Comments
 (0)