This commit is contained in:
parent
3a52aad023
commit
a1a93a7466
1 changed files with 5 additions and 1 deletions
|
@ -84,7 +84,11 @@ pub fn main() !void {
|
|||
var api_src = try api.ApiSource.init(&pool);
|
||||
var srv = http.Server.init();
|
||||
defer srv.deinit();
|
||||
try srv.listen(std.net.Address.parseIp("::1", 8080) catch unreachable);
|
||||
|
||||
const addr = "::1";
|
||||
const port = 8080;
|
||||
try srv.listen(std.net.Address.parseIp(addr, port) catch unreachable);
|
||||
std.log.info("Listening on {s}:{}", .{ addr, port });
|
||||
|
||||
var i: usize = 0;
|
||||
while (i < cfg.worker_threads - 1) : (i += 1) {
|
||||
|
|
Loading…
Reference in a new issue