From 8960a071d3dbea0a1b7db0a8446e62bee67d6a66 Mon Sep 17 00:00:00 2001 From: Ihor Vovk Date: Sat, 7 Dec 2024 13:01:14 +0100 Subject: [PATCH] Renamings (#49) --- .../scala/org/ivovk/connect_rpc_scala/ConnectHandler.scala | 4 ++-- .../grpc/{GrpcClientCalls.scala => ClientCalls.scala} | 2 +- .../{HttpTest.scala => ConnectCommunicationTest.scala} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename core/src/main/scala/org/ivovk/connect_rpc_scala/grpc/{GrpcClientCalls.scala => ClientCalls.scala} (98%) rename core/src/test/scala/org/ivovk/connect_rpc_scala/{HttpTest.scala => ConnectCommunicationTest.scala} (98%) diff --git a/core/src/main/scala/org/ivovk/connect_rpc_scala/ConnectHandler.scala b/core/src/main/scala/org/ivovk/connect_rpc_scala/ConnectHandler.scala index cba0eb7..344ed84 100644 --- a/core/src/main/scala/org/ivovk/connect_rpc_scala/ConnectHandler.scala +++ b/core/src/main/scala/org/ivovk/connect_rpc_scala/ConnectHandler.scala @@ -8,7 +8,7 @@ import io.grpc.MethodDescriptor.MethodType import org.http4s.dsl.Http4sDsl import org.http4s.{Header, MediaType, MessageFailure, Method, Response} import org.ivovk.connect_rpc_scala.Mappings.* -import org.ivovk.connect_rpc_scala.grpc.{GrpcClientCalls, GrpcHeaders, MethodName, MethodRegistry} +import org.ivovk.connect_rpc_scala.grpc.{ClientCalls, GrpcHeaders, MethodName, MethodRegistry} import org.ivovk.connect_rpc_scala.http.Headers.`X-Test-Case-Name` import org.ivovk.connect_rpc_scala.http.codec.MessageCodec.given import org.ivovk.connect_rpc_scala.http.codec.{MessageCodec, MessageCodecRegistry} @@ -104,7 +104,7 @@ class ConnectHandler[F[_] : Async]( } ) - GrpcClientCalls.asyncUnaryCall( + ClientCalls.asyncUnaryCall( channel, method.descriptor, callOptions, diff --git a/core/src/main/scala/org/ivovk/connect_rpc_scala/grpc/GrpcClientCalls.scala b/core/src/main/scala/org/ivovk/connect_rpc_scala/grpc/ClientCalls.scala similarity index 98% rename from core/src/main/scala/org/ivovk/connect_rpc_scala/grpc/GrpcClientCalls.scala rename to core/src/main/scala/org/ivovk/connect_rpc_scala/grpc/ClientCalls.scala index f589455..7bf4dd4 100644 --- a/core/src/main/scala/org/ivovk/connect_rpc_scala/grpc/GrpcClientCalls.scala +++ b/core/src/main/scala/org/ivovk/connect_rpc_scala/grpc/ClientCalls.scala @@ -3,7 +3,7 @@ package org.ivovk.connect_rpc_scala.grpc import cats.effect.Async import io.grpc.* -object GrpcClientCalls { +object ClientCalls { case class Response[T](value: T, headers: Metadata, trailers: Metadata) diff --git a/core/src/test/scala/org/ivovk/connect_rpc_scala/HttpTest.scala b/core/src/test/scala/org/ivovk/connect_rpc_scala/ConnectCommunicationTest.scala similarity index 98% rename from core/src/test/scala/org/ivovk/connect_rpc_scala/HttpTest.scala rename to core/src/test/scala/org/ivovk/connect_rpc_scala/ConnectCommunicationTest.scala index cee5fc5..eab313f 100644 --- a/core/src/test/scala/org/ivovk/connect_rpc_scala/HttpTest.scala +++ b/core/src/test/scala/org/ivovk/connect_rpc_scala/ConnectCommunicationTest.scala @@ -17,7 +17,7 @@ import java.net.URLEncoder import scala.concurrent.{ExecutionContext, Future} import scala.jdk.CollectionConverters.* -class HttpTest extends AnyFunSuite, Matchers { +class ConnectCommunicationTest extends AnyFunSuite, Matchers { object TestServiceImpl extends TestService { override def add(request: AddRequest): Future[AddResponse] =