From b1c3de6518ac714164377e9a10a11fcfb47dcd4b Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Thu, 13 Feb 2025 17:32:01 +0800 Subject: [PATCH] zig fmt --- src/server.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/server.zig b/src/server.zig index 12d1ecad..0f27f6e2 100644 --- a/src/server.zig +++ b/src/server.zig @@ -47,7 +47,6 @@ const MAX_HTTP_REQUEST_SIZE = 2048; // +140 for the max control packet that might be interleaved in a message const MAX_MESSAGE_SIZE = 256 * 1024 + 14; - pub const Client = ClientT(*Server, CDP); const Server = struct { @@ -243,7 +242,7 @@ const Server = struct { // (with its own completion), allocated on the heap. // After the send (on the sendCbk) the dedicated context will be destroy // and the data slice will be free. -const Send = struct { // Any unsent data we have. +const Send = struct { // Any unsent data we have. unsent: []const u8, server: *Server, @@ -1222,7 +1221,6 @@ test "Client: write websocket message" { .{ .expected = &.{ 129, 2, '"', '"' }, .message = "" }, .{ .expected = [_]u8{ 129, 14 } ++ "\"hello world!\"", .message = "hello world!" }, .{ .expected = [_]u8{ 129, 126, 0, 132 } ++ "\"" ++ ("A" ** 130) ++ "\"", .message = "A" ** 130 }, - }; for (cases) |c| {