Use IO.blocking to run on separate thread

This commit is contained in:
Guntis Smaukstelis
2023-06-22 14:20:03 +03:00
parent 3e1635d494
commit 6ce4d139a8
2 changed files with 8 additions and 4 deletions
-1
View File
@@ -9,7 +9,6 @@ import server.Server
object Main extends IOApp {
def run(args: List[String]): IO[ExitCode] = {
for {
// TODO run in separate thread
dbService <- DBService.of
dataService <- DataService.of(dbService)