observation: deliver one execution event sequence to stream and snapshot
This commit is contained in:
1 parent
f83d992c61
commit
404d559b86
97 files changed
+2672
-3128
No files matched your search
@@ -76,11 +76,9 @@ fn encode(project: &LoadedProject) -> Result<Vec<u8>, String> {
|
||||
.map_err(|error| format!("cannot encode analysis: {error}"))
|
||||
}
|
||||
|
||||
/// SHA-256 of the exact emitted Analysis bytes (Trace binds to this digest).
|
||||
pub fn digest(project: &LoadedProject) -> String {
|
||||
encode(project)
|
||||
.map(|bytes| sha256_hex(&bytes))
|
||||
.unwrap_or_else(|_| sha256_hex(b""))
|
||||
/// SHA-256 of the exact emitted Analysis bytes.
|
||||
pub fn digest(project: &LoadedProject) -> Result<String, String> {
|
||||
encode(project).map(|bytes| format!("sha256:{}", sha256_hex(&bytes)))
|
||||
}
|
||||
|
||||
/// Atomically write the projection. An error must not leave a stale success
|
||||
|
||||
Reference in new issue
Block a user