File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
examples/client_server/src/main/scala/examples/client_server Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,6 @@ class Dependencies(using AllocatorIO) {
33
33
ElizaServiceFs2Grpc .bindServiceResource[IO ](elizaServiceImpl)
34
34
}
35
35
36
- lazy val httpClient : org.http4s.client.Client [IO ] = allocate {
37
- EmberClientBuilder .default[IO ].build
38
- }
39
-
40
36
lazy val httpServerApp : org.http4s.HttpApp [IO ] = allocate {
41
37
ConnectHttp4sRouteBuilder .forService[IO ](elizaServiceGrpcServerDefinition).build
42
38
}
@@ -51,6 +47,10 @@ class Dependencies(using AllocatorIO) {
51
47
52
48
// CLIENT DEPENDENCIES -------------------------------------------
53
49
50
+ lazy val httpClient : org.http4s.client.Client [IO ] = allocate {
51
+ EmberClientBuilder .default[IO ].build
52
+ }
53
+
54
54
// `Channel` is a gRPC term describing a connection to a server.
55
55
// Both fs2-grpc and ZIO-gRPC accept Channels in their clients to communicate with a server.
56
56
lazy val connectRpcChannel : io.grpc.Channel = allocate {
You can’t perform that action at this time.
0 commit comments