Skip to content

Commit

Permalink
Delete DaprHTTPClient for actors.
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Souza <[email protected]>
  • Loading branch information
artursouza committed Jun 22, 2024
1 parent 502f7c0 commit 6b1101c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 389 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ private ActorManager getActorManager(String actorTypeName) {
* @throws java.lang.IllegalStateException if any required field is missing
*/
private static DaprClient buildDaprClient(ManagedChannel channel) {
return new DaprGrpcClient(channel);
return new DaprClientImpl(channel);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/**
* A DaprClient over HTTP for Actor's runtime.
*/
class DaprGrpcClient implements DaprClient {
class DaprClientImpl implements DaprClient {

/**
* Use to handle internal serialization.
Expand All @@ -60,7 +60,7 @@ class DaprGrpcClient implements DaprClient {
*
* @param channel channel (client needs to close channel after use).
*/
DaprGrpcClient(ManagedChannel channel) {
DaprClientImpl(ManagedChannel channel) {
this(DaprGrpc.newStub(channel));
}

Expand All @@ -69,7 +69,7 @@ class DaprGrpcClient implements DaprClient {
*
* @param daprStubClient Dapr's GRPC client.
*/
DaprGrpcClient(DaprGrpc.DaprStub daprStubClient) {
DaprClientImpl(DaprGrpc.DaprStub daprStubClient) {
this.client = daprStubClient;
}

Expand Down
205 changes: 0 additions & 205 deletions sdk-actors/src/main/java/io/dapr/actors/runtime/DaprHttpClient.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class DaprGrpcClientTest {

private final DaprGrpc.DaprImplBase serviceImpl = new CustomDaprClient();

private DaprGrpcClient client;
private DaprClientImpl client;

@Rule
public final GrpcCleanupRule grpcCleanup = new GrpcCleanupRule();
Expand All @@ -87,7 +87,7 @@ public void setup() throws IOException {
InProcessChannelBuilder.forName(serverName).directExecutor().build());

// Create a HelloWorldClient using the in-process channel;
client = new DaprGrpcClient(DaprGrpc.newStub(channel));
client = new DaprClientImpl(DaprGrpc.newStub(channel));
}

@Test
Expand Down
Loading

0 comments on commit 6b1101c

Please sign in to comment.