-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(p2p): add wire package for messages io
- Loading branch information
Showing
7 changed files
with
414 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
const std = @import("std"); | ||
pub const VersionMessage = @import("version.zig").VersionMessage; | ||
|
||
pub const MessageTypes = enum { Version }; | ||
|
||
pub const Message = union(MessageTypes) { | ||
Version: VersionMessage, | ||
|
||
pub fn deinit(self: Message, allocator: std.mem.Allocator) void { | ||
switch (self) { | ||
.Version => |m| m.deinit(allocator), | ||
} | ||
} | ||
}; |
Oops, something went wrong.