Skip to content

Commit

Permalink
fix invalid conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
t2h6 authored Dec 19, 2024
1 parent d256855 commit e23dbff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.beam.fn.harness.logging.BeamFnLoggingClient;
import org.apache.beam.fn.harness.logging.BeamFnLoggingMDC;
import org.apache.beam.fn.harness.logging.LoggingClientFactory;
import org.apache.beam.fn.harness.logging.QuotaEvent;
import org.apache.beam.model.fnexecution.v1.BeamFnApi;
import org.apache.beam.model.fnexecution.v1.BeamFnLoggingGrpc;
Expand Down Expand Up @@ -98,7 +99,7 @@ public ManageLoggingClientAndService() {
.build();
server.start();
loggingClient =
BeamFnLoggingClient.createAndStart(
LoggingClientFactory.createAndStart(
PipelineOptionsFactory.create(),
apiServiceDescriptor,
managedChannelFactory::forDescriptor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,8 @@ public StreamObserver<BeamFnApi.LogEntry.List> logging(
// Start the test within the logging context. This reroutes logging through to the boiler-plate
// that was set up
// earlier.
try (BeamFnLoggingClient ignored =
LoggingClientFactory.createAndStart(
try (LoggingClient ignored =
LoggingClientFactory.createAndStart(
PipelineOptionsFactory.create(),
apiServiceDescriptor,
(Endpoints.ApiServiceDescriptor descriptor) -> channel)) {
Expand Down

0 comments on commit e23dbff

Please sign in to comment.