╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │896 } │ │897 │ │898 { │ │899 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref); │ │899 + try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │900 │ │901 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │902 │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │981 try std.testing.expect(.success == merge.result); │ │982 } │ │983 │ │984 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref); │ │984 + try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │985 │ │986 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │987 │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1116 }; │ │1117 │ │1118 // commit and consume the seed events │ │1119 - try evt.commitAndConsume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume);│ │1119 + try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume); │ │1120 │ │1121 { │ │1122 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1171 }; │ │1172 │ │1173 // commit and consume the removal │ │1174 - try evt.commitAndConsume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume2);│ │1174 + try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume2); │ │1175 │ │1176 { │ │1177 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1205 }; │ │1206 │ │1207 // commit and consume the removal │ │1208 - try evt.commitAndConsume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume3);│ │1208 + try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume3); │ │1209 │ │1210 { │ │1211 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1284 .{ .id = std.fmt.bytesToHex(repo_ids[2], .lower), .timestamp = 103, .event = .{ .repo = .{ .user_id = &user_id, .name = "repo2", .description = "d2" } } },│ │1285 .{ .id = std.fmt.bytesToHex(repo_ids[3], .lower), .timestamp = 104, .event = .{ .repo = .{ .user_id = &user_id, .name = "repo3", .description = "d3" } } },│ │1286 }; │ │1287 - try evt.commitAndConsume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events); │ │1287 + try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events); │ │1288 │ │1289 { │ │1290 const moment = try evt.currentMoment(repo_opts, &repo); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1297 } │ │1298 │ │1299 // delete repo1 -> dense order (no tombstone) │ │1300 - try evt.commitAndConsume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{ │ │1300 + try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{ │ │1301 .{ .id = std.fmt.bytesToHex(repo_ids[1], .lower), .timestamp = 200, .event = .{ .repo = null } },│ │1302 }); │ │1303 { │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1306 } │ │1307 │ │1308 // update repo0 at a later timestamp -> keeps its original place │ │1309 - try evt.commitAndConsume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{ │ │1309 + try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{ │ │1310 .{ .id = std.fmt.bytesToHex(repo_ids[0], .lower), .timestamp = 300, .event = .{ .repo = .{ .user_id = &user_id, .name = "repo0", .description = "updated" } } },│ │1311 }); │ │1312 { │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯