╭ changed ─────────╮ │src/event/User.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │210 return user_id; │ │211 } │ │212 │ │213 -// a user's id via the email->user-id index │ │214 -pub fn readIdByEmail( │ │215 - comptime DB: type, │ │216 - comptime hash_kind: hash.HashKind, │ │217 - haxy_moment: DB.HashMap(.read_only), │ │218 - email: []const u8, │ │219 -) !?[evt.event_id_size]u8 { │ │220 - const index_cursor = (try haxy_moment.getCursor(hash.hashInt(hash_kind, email_to_user_id_key))) orelse return null;│ │221 - const index = try DB.HashMap(.read_only).init(index_cursor); │ │222 - const user_id_cursor = (try index.getCursor(hash.hashInt(hash_kind, email))) orelse return null; │ │223 - var user_id: [evt.event_id_size]u8 = undefined; │ │224 - _ = try user_id_cursor.readBytes(&user_id); │ │225 - return user_id; │ │226 -} │ │227 - │ │213 // a user's record map via the event-id->user index │ │214 fn userMap( │ │215 comptime DB: type, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯