~sircmpwn/public-inbox

toothbrush: server: update net usage per stdlib changes v1 PROPOSED

Shane Donahue: 1
 server: update net usage per stdlib changes

 1 files changed, 2 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/public-inbox/patches/34318/mbox | git am -3
Learn more about email & git

[PATCH toothbrush] server: update net usage per stdlib changes Export this patch

---
 server/main.ha | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/main.ha b/server/main.ha
index 06a1708..77ef336 100644
--- a/server/main.ha
+++ b/server/main.ha
@@ -65,12 +65,12 @@ export fn main() void = {

	let serv = match (tcp::listen(addr, port,
		256: tcp::backlog, tcp::reuseport)) {
	case let sock: io::file =>
	case let sock: net::socket =>
		yield sock;
	case let err: net::error =>
		fmt::fatal("listen:", net::strerror(err));
	};
	defer net::shutdown(serv);
	defer net::close(serv)!;
	fmt::printfln("Server running on :{}", port)!;

	let bus = iobus::new()!;
-- 
2.35.1