╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Repo.zig ─────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
40 const user_id_to_repos_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "user-id->repos")); 41 const user_id_to_repos = try DB.HashMap(.read_write).init(user_id_to_repos_cursor); 42 43 const user_key = hash.hashInt(hash_kind, existing_repo_event.user_id); 44 const user_repos_cursor = try user_id_to_repos.putCursor(user_key); 45 const user_repos = try DB.CountedHashSet(.read_write).init(user_repos_cursor); 46 _ = try user_repos.remove(repo_key); 47 } 48 if (!try event_id_to_repo.remove(repo_key)) return error.EventNotFound; 49 } 50 } 51