Skip to content

Commit

Permalink
aio: source as reference for EventSourceNotify
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudef committed Jun 22, 2024
1 parent f5bfc27 commit 7525f25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/aio.zig
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,9 @@ test "Socket" {
}

test "EventSource" {
const source = try EventSource.init();
var source = try EventSource.init();
try multi(.{
NotifyEventSource{ .source = source },
NotifyEventSource{ .source = &source },
WaitEventSource{ .source = source, .link = .hard },
CloseEventSource{ .source = source },
});
Expand Down
2 changes: 1 addition & 1 deletion src/aio/ops.zig
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ pub const CloseSocket = struct {

pub const NotifyEventSource = struct {
pub const Error = SharedError;
source: aio.EventSource,
source: *aio.EventSource,
out_id: ?*Id = null,
out_error: ?*Error = null,
link: Link = .unlinked,
Expand Down

0 comments on commit 7525f25

Please sign in to comment.