Freeze minimal SYSTEM nonstart 221 closure and reproducible Windows source
Rust development slice / linux (push) Failing after 6s
Rust development slice / linux (push) Failing after 6s
This commit is contained in:
@@ -284,10 +284,14 @@ pub fn events(db: &Connection) -> Result<Vec<Envelope>> {
|
||||
let bytes = statement
|
||||
.query_map([], |r| r.get::<_, Vec<u8>>(0))?
|
||||
.collect::<rusqlite::Result<Vec<_>>>()?;
|
||||
bytes
|
||||
.into_iter()
|
||||
.map(|b| Ok(Envelope::decode(b.as_slice())?))
|
||||
.collect()
|
||||
let mut active = vec![];
|
||||
for bytes in bytes {
|
||||
let envelope = Envelope::decode(bytes.as_slice())?;
|
||||
if !crate::windows_system_nonstart::retired_event(db, &envelope)? {
|
||||
active.push(envelope);
|
||||
}
|
||||
}
|
||||
Ok(active)
|
||||
}
|
||||
pub fn ack(db: &mut Connection, id: &str) -> Result<()> {
|
||||
let tx = db.transaction()?;
|
||||
|
||||
Reference in New Issue
Block a user