tcp: fix the config import (how did it build?)

This commit is contained in:
Aarnav Tale
2024-04-20 03:06:11 -04:00
parent 433a156287
commit 0fa7324ee6
2 changed files with 2 additions and 6 deletions

View File

@ -1,6 +1,6 @@
const std = @import("std"); const std = @import("std");
const xev = @import("xev"); 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 reject_client = @import("./handlers/reject.zig").reject_client;
const read_client = @import("./handlers/reader.zig").read_client; const read_client = @import("./handlers/reader.zig").read_client;
@ -38,10 +38,6 @@ socket: xev.TCP,
/// Timer for accepting connections /// Timer for accepting connections
acceptor: xev.Timer, acceptor: xev.Timer,
/// Array of client sockets
/// TODO: Merge with `sock_pool`? or make a hashmap
clients: SocketPool,
/// Number of clients connected /// Number of clients connected
clients_count: usize, clients_count: usize,

View File

@ -5,7 +5,7 @@ const std = @import("std");
const xev = @import("xev"); const xev = @import("xev");
const tcp = @import("../tcp.zig"); const tcp = @import("../tcp.zig");
const App = @import("../App.zig"); const App = @import("../App.zig");
const Config = @import("../Config.zig").Config; const Config = @import("../config/Config.zig");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const log = std.log.scoped(.tcp_thread); const log = std.log.scoped(.tcp_thread);