Add message after server startup
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
jaina heartles 2023-01-08 15:36:11 -08:00
parent 3a52aad023
commit a1a93a7466

View file

@ -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) {