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:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest, windows-2019]
runs-on: ${{ matrix.os }}
steps:

View File

@@ -187,11 +187,10 @@ impl Mqtt {
),
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();
server
.send_packet(
server.send_packet(
client_id,
PublishPacket {
flags: PublishFlags::QOS1,
@@ -200,8 +199,7 @@ impl Mqtt {
data,
}
.to_packet(),
)
.unwrap();
)?;
Ok(())
}