╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │574 // │ │575 │ │576 { │ │577 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │577 + try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │578 │ │579 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │580 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │676 _ = try std.fmt.hexToBytes(&issue_id, &events_to_consume[0].id); │ │677 │ │678 { │ │679 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │679 + try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │680 │ │681 // consuming the merge again must be a no-op rather than replaying it │ │682 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │682 + try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │683 │ │684 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │685 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │761 try std.testing.expect(.success == merge.result); │ │762 } │ │763 │ │764 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │764 + try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │765 │ │766 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │767 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │833 try std.testing.expect(.success == merge.result); │ │834 } │ │835 │ │836 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │836 + try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │837 │ │838 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │839 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │911 } │ │912 │ │913 { │ │914 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │914 + try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │915 │ │916 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │917 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 996 try std.testing.expect(.success == merge.result); │ │ 997 } │ │ 998 │ │ 999 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │ 999 + try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │1000 │ │1001 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │1002 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───────────────╮ │src/test/event/admin.zig│ ╰────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │90 }; │ │91 │ │92 // commit and consume the seed events │ │93 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume); │ │93 + try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume);│ │94 │ │95 { │ │96 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │146 }; │ │147 │ │148 // commit and consume the removal │ │149 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume2); │ │149 + try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume2);│ │150 │ │151 { │ │152 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │172 } │ │173 │ │174 // a non-null payload restores the repo and its indexes │ │175 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{.{ │ │175 + try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{.{│ │176 .id = std.fmt.bytesToHex(repo_event_id, .lower), │ │177 .author = author, │ │178 .event = events_to_consume[2].event, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │207 }; │ │208 │ │209 // commit and consume the removal │ │210 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume3); │ │210 + try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume3);│ │211 │ │212 { │ │213 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯