Skip to content

Commit

Permalink
fixup! [ATL-1779] feat(iris): Iris service scaffolding
Browse files Browse the repository at this point in the history
  • Loading branch information
pva701 committed Sep 25, 2022
1 parent df97ae4 commit d9864bd
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,11 @@ import zio.*
import zio.interop.catz.*

object Modules {

val actorSystemLayer: TaskLayer[ActorSystem[Nothing]] = ZLayer.scoped(
ZIO.acquireRelease(ZIO.attempt(ActorSystem(Behaviors.empty, "actor-system")))(system =>
ZIO.attempt(system.terminate()).orDie
)
)

val app: Task[Unit] = {
val grpcServerApp = GrpcServices.services.flatMap(GrpcServer.start(8081, _))

grpcServerApp
.provideLayer(actorSystemLayer ++ GrpcModule.layers)
.provideLayer(GrpcModule.layers)
.unit
}

Expand Down

0 comments on commit d9864bd

Please sign in to comment.