mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 23:36:20 +00:00
feat(core): per-module key-value data synced as PutModuleData (schema v9)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6c11d851f2
commit
c9ebb4fd30
8 files changed
+252
-4
No files matched your search
@@ -1174,6 +1174,16 @@ impl Graph {
|
||||
true
|
||||
}
|
||||
}
|
||||
Op::PutModuleData { module, key, value } => {
|
||||
crate::module_data::check_remote(module, key, value.as_deref())
|
||||
&& self
|
||||
.module_data_hlc(module, key)?
|
||||
.is_none_or(|l| hlc > l.as_str())
|
||||
&& {
|
||||
self.write_module_data_row(module, key, value.as_deref(), hlc)?;
|
||||
true
|
||||
}
|
||||
}
|
||||
};
|
||||
if applied {
|
||||
self.log(hlc, op)?;
|
||||
|
||||
Reference in new issue
Block a user