╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │212 const admin_ssh_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKeIs8mJqigBZ5y84J4COgnAJJ5bHPKy+lM2SliMXbYm radar@roark";│ │213 │ │214 var events_to_consume: [user_data.len]evt.EventWithId = undefined; │ │215 - // inserted back to front, so the newest-first listing shows them in the │ │216 - // order they're written above │ │217 - for (0..user_data.len) |slot| { │ │218 - const i = user_data.len - 1 - slot; │ │219 - const u = user_data[i]; │ │220 - events_to_consume[slot] = .{ │ │215 + for (user_data, 0..) |u, i| { │ │216 + events_to_consume[i] = .{ │ │217 .id = std.fmt.bytesToHex(user_ids[i], .lower), │ │222 - // stepped timestamps so the seeded users/repos list in a stable order │ │223 - .timestamp = @intCast(slot + 1), │ │218 + // stepped timestamps give the seeds a stable creation order │ │219 + .timestamp = @intCast(i + 1), │ │220 .author = .{ .name = "admin", .email = "admin@example.test" }, │ │221 .event = .{ │ │222 .user = .{ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯