File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
sled-hardware/src/illumos Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -808,7 +808,7 @@ fn parse_smbios_output(log: &Logger, output: String) -> Option<Baseboard> {
808808 Some ( Baseboard :: new_pc ( serial_number, product) )
809809}
810810
811- async fn hardware_tracking_task (
811+ fn hardware_tracking_task (
812812 log : Logger ,
813813 inner : Arc < Mutex < HardwareView > > ,
814814 nonsled_observed_disks : Vec < UnparsedDisk > ,
@@ -918,13 +918,15 @@ impl HardwareManager {
918918 // device contract with the kernel to handle those disappearances.
919919 let log2 = log. clone ( ) ;
920920 let tx2 = tx. clone ( ) ;
921- std:: thread:: spawn ( move || monitor_tofino ( log2, tx2) ) ;
921+ std:: thread:: spawn ( move || {
922+ monitor_tofino ( log2, tx2) ;
923+ } ) ;
922924
923925 let log2 = log. clone ( ) ;
924926 let inner2 = inner. clone ( ) ;
925927 let tx2 = tx. clone ( ) ;
926928 std:: thread:: spawn ( move || {
927- hardware_tracking_task ( log2, inner2, nonsled_observed_disks, tx2)
929+ hardware_tracking_task ( log2, inner2, nonsled_observed_disks, tx2) ;
928930 } ) ;
929931
930932 Ok ( Self { log, inner, tx } )
You can’t perform that action at this time.
0 commit comments