╭ changed ────────────╮ │src/event/Comment.zig│ ╰─────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────╮ │ 99 │ │100 // create a comment and return its event id. `repo` must be writable.│ │101 pub fn create( │ │102 - host_kind: evt.HostKind, │ │102 + host: evt.Host, │ │103 comptime repo_kind: rp.RepoKind, │ │104 comptime repo_opts: rp.RepoOpts(repo_kind), │ │105 io: std.Io, │ ╰──────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │115 var id_bytes: [evt.event_id_size]u8 = undefined; │ │116 io.random(&id_bytes); │ │117 const event_id = std.fmt.bytesToHex(id_bytes, .lower); │ │118 - try evt.consume(host_kind, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &.{.{│ │118 + try evt.consume(host, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &.{.{ │ │119 .id = event_id, │ │120 .timestamp = @intCast(std.Io.Timestamp.now(io, .real).toSeconds()), │ │121 .author = author, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────╮ │131 // replace a comment's body while preserving its thread and parent. `repo` must│ │132 // be writable. │ │133 pub fn update( │ │134 - host_kind: evt.HostKind, │ │134 + host: evt.Host, │ │135 comptime repo_kind: rp.RepoKind, │ │136 comptime repo_opts: rp.RepoOpts(repo_kind), │ │137 io: std.Io, │ ╰────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │164 │ │165 var updated = comment.event; │ │166 updated.body = body; │ │167 - try evt.consume(host_kind, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &.{.{│ │167 + try evt.consume(host, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &.{.{ │ │168 .id = std.fmt.bytesToHex(comment_id.*, .lower), │ │169 .timestamp = @intCast(std.Io.Timestamp.now(io, .real).toSeconds()), │ │170 .author = author, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯