RPC services refactoring
This commit is contained in:
@@ -20,8 +20,7 @@ export module ExpressHTTPServer {
|
||||
}),
|
||||
|
||||
server => Effect.gen(function*() {
|
||||
yield* Effect.logInfo(`HTTP server is closing. Waiting for existing connections to end...`)
|
||||
|
||||
yield* Effect.logInfo(`HTTP server is stopping. Waiting for existing connections to end...`)
|
||||
yield* Effect.async(resume => {
|
||||
server.close(() => resume(Effect.logInfo(`HTTP server closed`)))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user