Skip to content

Commit

Permalink
aio: remove ident from nop
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudef committed Jan 31, 2025
1 parent 0a4aa94 commit 6ec6d16
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/aio.zig
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ test "Nop" {
}
};
const handler: Handler = .{};
try dynamic.queue(op(.nop, .{ .ident = 69, .userdata = 42 }, .unlinked), handler);
try dynamic.queue(op(.nop, .{ .userdata = 42 }, .unlinked), handler);
try std.testing.expectEqual(0, dynamic.completeAll(handler));
}

Expand Down
2 changes: 0 additions & 2 deletions src/aio/IoUring.zig
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ pub const EventSource = linux.EventSource;

const UringOperation = struct {
const State = union {
nop: usize,
child_exit: struct {
child: std.process.Child.Id,
state: union {
Expand All @@ -45,7 +44,6 @@ const UringOperation = struct {

fn init(comptime op_type: Operation, op: Operation.map.getAssertContains(op_type)) @This() {
return switch (op_type) {
.nop => .{ .nop = op.ident },
.child_exit => .{
.child_exit = .{
.child = op.child,
Expand Down
1 change: 0 additions & 1 deletion src/aio/ops.zig
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const SharedError = error{
/// Can be used to wakeup the backend, custom notifications, etc...
pub const Nop = struct {
pub const Error = SharedError;
ident: usize,
out_id: ?*Id = null,
out_error: ?*Error = null,
userdata: usize = 0,
Expand Down
4 changes: 1 addition & 3 deletions src/aio/uringlator.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ const Result = struct {

const UringlatorOperation = struct {
const State = union {
nop: struct {
ident: usize,
},
nop: struct {},
fsync: struct {
file: std.fs.File,
},
Expand Down

0 comments on commit 6ec6d16

Please sign in to comment.