summaryrefslogtreecommitdiff
path: root/lib/http
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-09-11 21:46:00 -0700
committerOri Bernstein <ori@eigenstate.org>2017-09-11 23:28:03 -0700
commit59d49a9789ad8fae0d464e3e60e1196d7d861d18 (patch)
tree145d9a4053240fd5e4e29a94e21dc5528d31a2a7 /lib/http
parent210d305e98e146b37e0530a2463c9ed2de3fa648 (diff)
downloadmc-59d49a9789ad8fae0d464e3e60e1196d7d861d18.tar.gz
Announce now implicitly listens.
Diffstat (limited to 'lib/http')
-rw-r--r--lib/http/server.myr8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/http/server.myr b/lib/http/server.myr
index 8b221bd..90fba7e 100644
--- a/lib/http/server.myr
+++ b/lib/http/server.myr
@@ -14,17 +14,9 @@ pkg http =
;;
const announce = {ds
- var afd
-
match std.announce(ds)
- | `std.Ok f: afd = f
- | `std.Err e: -> `std.Err `Econn
- ;;
-
- match std.listen(afd)
| `std.Err e: -> `std.Err `Econn
| `std.Ok lfd:
- std.close(afd)
-> `std.Ok std.mk([
.refs=1,
.lfd=lfd,