╭ changed ─────────╮ │src/event/Repo.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │77 // first time we've seen this repo: add it to the ordered map the repos │ │78 // view paginates through │ │79 if (existing_cursor_maybe == null) { │ │80 - const timestamp_to_repo_id_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "timestamp->repo-id")); │ │81 - const timestamp_to_repo_id = try DB.SortedMap(.read_write).init(timestamp_to_repo_id_cursor); │ │80 + const created_ts_to_repo_id_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "created-ts->repo-id"));│ │81 + const created_ts_to_repo_id = try DB.SortedMap(.read_write).init(created_ts_to_repo_id_cursor); │ │82 const order_key = evt.orderKey(event_to_write.created_ts, event_id); │ │83 - try timestamp_to_repo_id.put(&order_key, .{ .bytes = event_id }); │ │83 + try created_ts_to_repo_id.put(&order_key, .{ .bytes = event_id }); │ │84 } │ │85 │ │86 const user_id_to_repos_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "user-id->repos")); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 98 _ = try name_to_repo_id.remove(hash.hashInt(hash_kind, existing_path)); │ │ 99 │ │100 // drop it from the ordered map using its recorded creation timestamp │ │101 - const timestamp_to_repo_id_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "timestamp->repo-id")); │ │102 - const timestamp_to_repo_id = try DB.SortedMap(.read_write).init(timestamp_to_repo_id_cursor); │ │101 + const created_ts_to_repo_id_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "created-ts->repo-id"));│ │102 + const created_ts_to_repo_id = try DB.SortedMap(.read_write).init(created_ts_to_repo_id_cursor); │ │103 const order_key = evt.orderKey(existing_repo_event.created_ts, event_id); │ │104 - _ = try timestamp_to_repo_id.remove(&order_key); │ │104 + _ = try created_ts_to_repo_id.remove(&order_key); │ │105 │ │106 const user_id_to_repos_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "user-id->repos")); │ │107 const user_id_to_repos = try DB.HashMap(.read_write).init(user_id_to_repos_cursor); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯