Skip to content

Conversation

@fabriziodemaria
Copy link
Member

@fabriziodemaria fabriziodemaria commented Oct 13, 2025

The blessed solution being the WASM-based one, this PR aims at reduce unnecessary duplicated logic and streamline codebase maintenance and clarity.

Most of the edits are simple deletions, apart from a small refactoring related to logical expressions implementations that are moved to a dedicated sub-package to keep the codebase more tidy and easier to navigate

@fabriziodemaria fabriziodemaria force-pushed the remove-native-local branch 2 times, most recently from e1168b2 to e53a4f5 Compare October 13, 2025 12:41
Comment on lines +49 to +61
static ManagedChannel createConfidenceChannel() {
final String confidenceDomain =
Optional.ofNullable(System.getenv("CONFIDENCE_DOMAIN")).orElse(CONFIDENCE_DOMAIN);
final boolean useGrpcPlaintext =
Optional.ofNullable(System.getenv("CONFIDENCE_GRPC_PLAINTEXT"))
.map(Boolean::parseBoolean)
.orElse(false);
ManagedChannelBuilder<?> builder = ManagedChannelBuilder.forTarget(confidenceDomain);
if (useGrpcPlaintext) {
builder = builder.usePlaintext();
}
return builder.intercept(new DefaultDeadlineClientInterceptor(Duration.ofMinutes(1))).build();
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just unifying a code duplication

@fabriziodemaria fabriziodemaria merged commit 938c40a into main Oct 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants