mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Fix potential infinite loop
The code removed here was copied from another project some years back. Now there is an improved version in fs2 that can be used. Fixes: #2376
This commit is contained in:
@ -75,14 +75,14 @@ object JoexServer {
|
||||
|
||||
Stream
|
||||
.resource(app)
|
||||
.evalMap { app =>
|
||||
.flatMap { app =>
|
||||
EmberServerBuilder
|
||||
.default[F]
|
||||
.withHost(cfg.bind.address)
|
||||
.withPort(cfg.bind.port)
|
||||
.withHttpApp(app.httpApp)
|
||||
.build
|
||||
.useUntil(app.termSig, app.exitRef)
|
||||
.useWhile(app.termSig, app.exitRef)
|
||||
}
|
||||
}.drain
|
||||
}
|
||||
|
Reference in New Issue
Block a user