╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭────────────────────────────────────────────────────────────────────────╮ │1062 email: []const u8, // an email no user matches │ │1063 user_name: []const u8, │ │1064 │ │1065 - // the commit author line's email, resolved like initFromDb │ │1065 + // the commit author line's email, resolved like initFromEmail│ │1066 pub fn init( │ │1067 haxy_moment: ?evt.AdminDB.HashMap(.read_only), │ │1068 arena: *std.heap.ArenaAllocator, │ ╰────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────╮ │1069 author_line: []const u8, │ │1070 ) !Author { │ │1071 - return initFromDb(haxy_moment, arena, evt.authorEmail(author_line)); │ │1071 + return initFromEmail(haxy_moment, arena, evt.authorEmail(author_line));│ │1072 } │ │1073 │ │1074 // from a record's stored author email: it resolves to the user currently │ ╰─────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │1075 // holding it, else stays the email. the result is allocated in `arena`,│ │1076 // so the email may borrow transient memory. │ │1077 - pub fn initFromDb( │ │1077 + pub fn initFromEmail( │ │1078 haxy_moment: ?evt.AdminDB.HashMap(.read_only), │ │1079 arena: *std.heap.ArenaAllocator, │ │1080 author_email: ?[]const u8, │ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─────────────╮ │src/ui/Repo/Issues.zig│ ╰──────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │318 try issues.append(aa, .{ │ │319 .id = try aa.dupe(u8, &id_hex), │ │320 .issue = issue_event, │ │321 - .author = try ui.Author.initFromDb(admin_moment, arena, issue_event.author_email), │ │321 + .author = try ui.Author.initFromEmail(admin_moment, arena, issue_event.author_email),│ │322 }); │ │323 } │ │324 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯