Skip to content

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
akkie committed Feb 5, 2025
1 parent 3693151 commit 8e0f635
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ static void daprProperties(DynamicPropertyRegistry registry) {
@Autowired
private ActorClient daprActorClient;

@Autowired
private ActorRuntime daprActorRuntime;
@Autowired
private ActorRuntime daprActorRuntime;

@BeforeEach
public void setUp(){
daprActorRuntime.registerActor(TestActorImpl.class);
}
@BeforeEach
public void setUp(){
daprActorRuntime.registerActor(TestActorImpl.class);
}

@Test
@Test
public void testActors() throws Exception {
ActorProxyBuilder<TestActor> builder = new ActorProxyBuilder<>(TestActor.class, daprActorClient);
ActorId actorId = ActorId.createRandom();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ public ActorClient daprActorClient(
return new ActorClient(new Properties(overrides));
}

@Bean
public ActorRuntime daprActorRuntime(
@Value("${dapr.http.endpoint}") String daprHttpEndpoint,
@Value("${dapr.grpc.endpoint}") String daprGrpcEndpoint
){
Map<String, String> overrides = Map.of(
"dapr.http.endpoint", daprHttpEndpoint,
"dapr.grpc.endpoint", daprGrpcEndpoint
);
@Bean
public ActorRuntime daprActorRuntime(
@Value("${dapr.http.endpoint}") String daprHttpEndpoint,
@Value("${dapr.grpc.endpoint}") String daprGrpcEndpoint
){
Map<String, String> overrides = Map.of(
"dapr.http.endpoint", daprHttpEndpoint,
"dapr.grpc.endpoint", daprGrpcEndpoint
);

return ActorRuntime.getInstance(new Properties(overrides));
}
return ActorRuntime.getInstance(new Properties(overrides));
}
}

0 comments on commit 8e0f635

Please sign in to comment.