Skip to content

Commit

Permalink
fix wasi poll backend for new zig
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Aug 24, 2023
1 parent 039f28f commit f069152
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backend/wasi_poll.zig
Original file line number Diff line number Diff line change
Expand Up @@ -890,8 +890,8 @@ pub const OperationType = enum {
pread,
write,
pwrite,
recv,
send,
recv,
shutdown,
close,
timer,
Expand All @@ -908,8 +908,8 @@ pub const Result = union(OperationType) {
pread: ReadError!usize,
write: WriteError!usize,
pwrite: WriteError!usize,
recv: ReadError!usize,
send: WriteError!usize,
recv: ReadError!usize,
shutdown: ShutdownError!void,
close: CloseError!void,
timer: TimerError!TimerTrigger,
Expand Down Expand Up @@ -972,11 +972,11 @@ pub const Operation = union(OperationType) {
fd: std.os.fd_t,
},

timer: Timer,

async_wait: struct {
wakeup: Loop.WakeupType = Loop.wakeup_init,
},

timer: Timer,
};

const Timer = struct {
Expand Down

0 comments on commit f069152

Please sign in to comment.