sync: carry HLC field on ChangeEntry for SyncKit protocol bump
synckit-client now orders conflicts by a hybrid logical clock carried on
ChangeEntry. audiofiles applies remote changes in server order (no client-side
conflict resolution), so the field is populated Default and unread; this keeps
audiofiles building against the new synckit-client. Populate a real clock here
only if audiofiles later adds conflict resolution.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2 files changed,
+3 insertions,
-0 deletions
| 244 |
244 |
|
op,
|
| 245 |
245 |
|
row_id: row_id.to_string(),
|
| 246 |
246 |
|
timestamp: chrono::Utc::now(),
|
|
247 |
+ |
hlc: Default::default(),
|
| 247 |
248 |
|
data,
|
| 248 |
249 |
|
}
|
| 249 |
250 |
|
}
|
| 1511 |
1512 |
|
},
|
| 1512 |
1513 |
|
row_id,
|
| 1513 |
1514 |
|
timestamp: chrono::Utc::now(),
|
|
1515 |
+ |
hlc: Default::default(),
|
| 1514 |
1516 |
|
data: data.and_then(|d| serde_json::from_str(&d).ok()),
|
| 1515 |
1517 |
|
})
|
| 1516 |
1518 |
|
.collect()
|
| 238 |
238 |
|
op: change_op,
|
| 239 |
239 |
|
row_id,
|
| 240 |
240 |
|
timestamp: ts,
|
|
241 |
+ |
hlc: Default::default(),
|
| 241 |
242 |
|
data: parsed_data,
|
| 242 |
243 |
|
})
|
| 243 |
244 |
|
})
|