fix build and update comment (#11542)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages 2025-04-22 23:18:36 +08:00 committed by GitHub
parent 2cb096178a
commit 296aa7f8a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -115,15 +115,16 @@ async fn start_hbbs_sync_async() {
let old_hash = config::Status::get("sysinfo_hash");
let ver = config::Status::get("sysinfo_ver"); // sysinfo_ver is the version of sysinfo on server's side
if hash == old_hash {
// When the api doesn't exist, Ok("") will be returned in test.
let samever = match crate::post_request(url.replace("heartbeat", "sysinfo_ver"), "".to_owned(), "").await {
Ok(x) => {
sysinfo_ver = x.clone();
x == ver
*PRO.lock().unwrap() = true;
x == ver
}
_ => {
false // to make sure Pro can be assigned in below post for old
// hbbs pro not supporting sysinfo_ver
// hbbs pro not supporting sysinfo_ver, use false for ensuring
}
};
if samever {