From 0fa7324ee671c47ac249b6f26a39543a60b4f78d Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Sat, 20 Apr 2024 03:06:11 -0400 Subject: [PATCH] tcp: fix the config import (how did it build?) --- src/tcp/Server.zig | 6 +----- src/tcp/Thread.zig | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/tcp/Server.zig b/src/tcp/Server.zig index 6bbaf2875..10c98b073 100644 --- a/src/tcp/Server.zig +++ b/src/tcp/Server.zig @@ -1,6 +1,6 @@ const std = @import("std"); const xev = @import("xev"); -const Config = @import("../Config.zig").Config; +const Config = @import("../config/Config.zig"); const reject_client = @import("./handlers/reject.zig").reject_client; const read_client = @import("./handlers/reader.zig").read_client; @@ -38,10 +38,6 @@ socket: xev.TCP, /// Timer for accepting connections acceptor: xev.Timer, -/// Array of client sockets -/// TODO: Merge with `sock_pool`? or make a hashmap -clients: SocketPool, - /// Number of clients connected clients_count: usize, diff --git a/src/tcp/Thread.zig b/src/tcp/Thread.zig index 309e9c1d0..5afa91ab0 100644 --- a/src/tcp/Thread.zig +++ b/src/tcp/Thread.zig @@ -5,7 +5,7 @@ const std = @import("std"); const xev = @import("xev"); const tcp = @import("../tcp.zig"); const App = @import("../App.zig"); -const Config = @import("../Config.zig").Config; +const Config = @import("../config/Config.zig"); const Allocator = std.mem.Allocator; const log = std.log.scoped(.tcp_thread);