Skip to content

Commit

Permalink
wrong DI interface, wrong proto package
Browse files Browse the repository at this point in the history
  • Loading branch information
johanandren committed Jan 24, 2025
1 parent 5088754 commit c16feb6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions akka-javasdk/src/main/scala/akka/javasdk/impl/SdkRunner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -600,11 +600,11 @@ private final class Sdk(
// Note: config is also always available through the combination with user DI way down below
private def sideEffectingComponentInjects(span: Option[Span]): PartialFunction[Class[_], Any] = {
// remember to update component type API doc and docs if changing the set of injectables
case p if p == classOf[ComponentClient] => componentClient(span)
case h if h == classOf[HttpClientProvider] => httpClientProvider(span)
case g if g == classOf[GrpcClientProviderImpl] => grpcClientProvider // FIXME trace propagation
case t if t == classOf[TimerScheduler] => timerScheduler(span)
case m if m == classOf[Materializer] => sdkMaterializer
case p if p == classOf[ComponentClient] => componentClient(span)
case h if h == classOf[HttpClientProvider] => httpClientProvider(span)
case g if g == classOf[GrpcClientProvider] => grpcClientProvider // FIXME trace propagation
case t if t == classOf[TimerScheduler] => timerScheduler(span)
case m if m == classOf[Materializer] => sdkMaterializer
}

val spiComponents: SpiComponents = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import akka.javasdk.annotations.Acl;
import akka.javasdk.annotations.GrpcEndpoint;
import akka.javasdk.grpc.GrpcClientProvider;
import com.example.grpc.CallExternalGrpcEndpoint;
import com.example.grpc.ExampleGrpcEndpointClient;
import com.example.grpc.HelloReply;
import com.example.grpc.HelloRequest;
import com.example.proto.CallExternalGrpcEndpoint;
import com.example.proto.ExampleGrpcEndpointClient;
import com.example.proto.HelloReply;
import com.example.proto.HelloRequest;

import java.util.concurrent.CompletionStage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import akka.javasdk.annotations.Acl;
import akka.javasdk.annotations.GrpcEndpoint;
import akka.javasdk.grpc.GrpcClientProvider;
import com.example.grpc.DelegatingGrpcEndpoint;
import com.example.grpc.ExampleGrpcEndpointClient;
import com.example.grpc.HelloReply;
import com.example.grpc.HelloRequest;
import com.example.proto.DelegatingGrpcEndpoint;
import com.example.proto.ExampleGrpcEndpointClient;
import com.example.proto.HelloReply;
import com.example.proto.HelloRequest;

import java.util.concurrent.CompletionStage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ syntax = "proto3";
import "com/example/example_grpc_endpoint.proto";

option java_multiple_files = true;
option java_package = "com.example.grpc";
option java_package = "com.example.proto";
option java_outer_classname = "DelegationExampleGrpc";

package com.example;
Expand Down

0 comments on commit c16feb6

Please sign in to comment.