summaryrefslogtreecommitdiff
path: root/server/mod.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/mod.ts')
-rw-r--r--server/mod.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/mod.ts b/server/mod.ts
index 02b307a..1d168d2 100644
--- a/server/mod.ts
+++ b/server/mod.ts
@@ -11,12 +11,12 @@ const server = new CiHookServer();
export const runServer = (
port: number,
host: string,
-): Promise<IEither<Error, void>> => {
+): Promise<IEither<Error, 0>> => {
const serverConfig = {
host,
port,
};
return Either.fromFailable<Error, Deno.HttpServer>(() =>
Deno.serve(serverConfig, (req) => server.serve(req)),
- ).flatMapAsync((server) => Either.fromFailableAsync(() => server.finished));
+ ).flatMapAsync((server) => Either.fromFailableAsync(() => server.finished.then(() => 0)));
};