diff options
Diffstat (limited to 'test/replicas.zig')
| -rw-r--r-- | test/replicas.zig | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/replicas.zig b/test/replicas.zig index e035cd81..e5e719b3 100644 --- a/test/replicas.zig +++ b/test/replicas.zig @@ -773,7 +773,7 @@ fn ended(cl: *Client, c: usize, net: *Net, now: u64, totals: *Totals, run_: Run, const r = cl.r.?; const link = &cl.loop.link; // Its link ended by the session (a Detach), it says nothing more. - if (!link.gone) replica.bye(link.fd, r.diverged != null or link.lagged != 0); + if (!link.gone) replica.bye(link.fd, .{ .again = r.diverged != null or link.lagged != 0 }); try drain(cl, c, net, now); cl.live = 0; if (link.lagged != 0) { @@ -1425,7 +1425,7 @@ const Soak = struct { // A Detach typed in a client's view, or one cut off for its lag: its // link shut, it hears its end and nothing after; its reader's end // said (the next boundary lets it go). - if (s.detach_view) |k| for (s.clients) |*cl| if (cl.peer) |p| if (p.view == k and !cl.shut) { + if (s.detach_view) |k| for (s.clients) |*cl| if (cl.peer) |p| if (p.view.index() == k and !cl.shut) { cl.shut = true; }; s.detach_view = null; @@ -1567,7 +1567,6 @@ const Soak = struct { } pub fn upgradeAsked(_: *Soak) void {} - pub fn note(_: *Soak, _: anytype) void {} pub fn restoring(_: *Soak, _: *pardes.Pardes) void {} pub fn restored(_: *Soak, _: *SessionLoop) void {} @@ -2484,7 +2483,7 @@ fn flushAll(sc: *replica.Screens, core: *pardes.Pardes, ps: []const u16, list: * for (ps, 0..) |peer, c| { list.clearRetainingCapacity(); // Terminals alone cross: the view is not read. - try sc.flush(core, peer, 0, list); + try sc.flush(core, peer, list); for (list.items) |bytes| { tot.deltas += 1; tot.delta_bytes += bytes.len; |
