mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Rename sanity check fields avoid conflict with outer span
This commit is contained in:
parent
cf39455487
commit
21a03265a2
2 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ impl NormalSyncer<'_> {
|
||||||
},
|
},
|
||||||
} = &e
|
} = &e
|
||||||
{
|
{
|
||||||
debug!(?client, ?server, "sanity check failed");
|
debug!(client_counts=?client, server_counts=?server, "sanity check failed");
|
||||||
self.col.set_schema_modified()?;
|
self.col.set_schema_modified()?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ pub fn server_sanity_check(
|
||||||
let mut server = match col.storage.sanity_check_info() {
|
let mut server = match col.storage.sanity_check_info() {
|
||||||
Ok(info) => info,
|
Ok(info) => info,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
info!(?client, ?err, "sanity check failed");
|
info!(client_counts=?client, ?err, "sanity check failed");
|
||||||
return Ok(SanityCheckResponse {
|
return Ok(SanityCheckResponse {
|
||||||
status: SanityCheckStatus::Bad,
|
status: SanityCheckStatus::Bad,
|
||||||
client: Some(client),
|
client: Some(client),
|
||||||
|
@ -108,7 +108,7 @@ pub fn server_sanity_check(
|
||||||
status: if client == server {
|
status: if client == server {
|
||||||
SanityCheckStatus::Ok
|
SanityCheckStatus::Ok
|
||||||
} else {
|
} else {
|
||||||
info!(?client, ?server, "sanity check failed");
|
info!(client_counts=?client, server_counts=?server, "sanity check failed");
|
||||||
SanityCheckStatus::Bad
|
SanityCheckStatus::Bad
|
||||||
},
|
},
|
||||||
client: Some(client),
|
client: Some(client),
|
||||||
|
|
Loading…
Reference in a new issue