Build for older windows version in CI

This commit is contained in:
Connor Slade
2024-08-20 14:39:38 -04:00
parent 4868511c1c
commit cfac6f6579
2 changed files with 12 additions and 14 deletions

View File

@@ -6,7 +6,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest, macos-latest, windows-latest] os: [ubuntu-latest, macos-latest, windows-2019]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:

View File

@@ -187,21 +187,19 @@ impl Mqtt {
), ),
id: client.machine_id.to_owned(), id: client.machine_id.to_owned(),
}; };
let data = serde_json::to_vec(&data).unwrap(); let data = serde_json::to_vec(&data)?;
let server = self.server.upgrade().unwrap(); let server = self.server.upgrade().unwrap();
server server.send_packet(
.send_packet( client_id,
client_id, PublishPacket {
PublishPacket { flags: PublishFlags::QOS1,
flags: PublishFlags::QOS1, topic: format!("/sdcp/request/{}", client.attributes.mainboard_id),
topic: format!("/sdcp/request/{}", client.attributes.mainboard_id), packet_id: Some(packet_id),
packet_id: Some(packet_id), data,
data, }
} .to_packet(),
.to_packet(), )?;
)
.unwrap();
Ok(()) Ok(())
} }