Skip to main content

max / audiofiles

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>
Author: Max Johnson <me@maxj.phd> · 2026-06-19 19:28 UTC
Commit: bf2fb939f671cb77c57bc36ec7472e3f901d4d65
Parent: bd43d67
2 files changed, +3 insertions, -0 deletions
@@ -244,6 +244,7 @@ mod tests {
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,6 +1512,7 @@ mod tests {
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,6 +238,7 @@ async fn push_changes(
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 })