@@ -146,7 +146,7 @@ impl InstanceManager {
146146 . tx
147147 . send ( InstanceManagerRequest :: EnsureRegistered {
148148 propolis_id,
149- instance,
149+ instance : Box :: new ( instance ) ,
150150 sled_identifiers : Box :: new ( sled_identifiers) ,
151151 tx,
152152 } )
@@ -335,12 +335,12 @@ impl InstanceManager {
335335enum InstanceManagerRequest {
336336 EnsureRegistered {
337337 propolis_id : PropolisUuid ,
338- instance : InstanceEnsureBody ,
339338 // These are boxed because they are, apparently, quite large, and Clippy
340339 // whinges about the overall size of this variant relative to the
341340 // others. Since we will generally send `EnsureRegistered` requests much
342341 // less frequently than most of the others, boxing this seems like a
343342 // reasonable choice...
343+ instance : Box < InstanceEnsureBody > ,
344344 sled_identifiers : Box < SledIdentifiers > ,
345345 tx : oneshot:: Sender < Result < SledVmmState , Error > > ,
346346 } ,
@@ -462,7 +462,7 @@ impl InstanceManagerRunner {
462462 sled_identifiers,
463463 tx,
464464 } ) => {
465- tx. send( self . ensure_registered( propolis_id, instance, * sled_identifiers) . await ) . map_err( |_| Error :: FailedSendClientClosed )
465+ tx. send( self . ensure_registered( propolis_id, * instance, * sled_identifiers) . await ) . map_err( |_| Error :: FailedSendClientClosed )
466466 } ,
467467 Some ( EnsureUnregistered { propolis_id, tx } ) => {
468468 self . ensure_unregistered( tx, propolis_id)
0 commit comments