summaryrefslogtreecommitdiff
path: root/src/Pipe.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-31 06:28:48 -0300
committerGabriel Schneider <[email protected]>2026-10-31 06:28:48 -0300
commita479792a1ab2b593642d7f648194bfa23ce01dba (patch)
tree96ddee7d879a9084daa07db43b0b7910b072a785 /src/Pipe.zig
parente179cc44fe5060c76a5b00c41e53f11209f5acd9 (diff)
parent4c761893e5b3fdae422622cfa02104ab36633045 (diff)
downloadpardes-a479792a1ab2b593642d7f648194bfa23ce01dba.tar.gz
pardes-a479792a1ab2b593642d7f648194bfa23ce01dba.zip
Merge the upstream daemon and replicated client/server refactor
Diffstat (limited to 'src/Pipe.zig')
-rw-r--r--src/Pipe.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Pipe.zig b/src/Pipe.zig
index 850f9c64..903c1dba 100644
--- a/src/Pipe.zig
+++ b/src/Pipe.zig
@@ -15,6 +15,10 @@ const Key = pardes.Key;
const Pardes = pardes.Pardes;
const Pipe = @This();
+/// A pipe's run, an Edit's and its writes, out with the host: errands of
+/// the session that performs them, not a dump's (src/walk.zig).
+pub const replica = .{ .authority = .{ "wait", "edit_run", "writes" } };
+
/// Bumped for every request, so a late answer to an older one is ignored.
seq: u32 = 0,
/// The request in flight, and what it needs to apply its answer.
@@ -52,6 +56,8 @@ pub fn pipeMarker(how: modal.Normal.PipeBehavior) []const u8 {
}
pub const PendingPipe = struct {
+ /// The digest's walk (src/walk.zig) of the ranges, as far as they go.
+ pub const replica = .{ .len = .{.{ "ranges", "nranges" }} };
id: u32,
pane: usize,
serial: u32,