From eeb625b452d66d3c0e15e2bf1837622de108f217 Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Wed, 9 Apr 2025 01:07:00 +0700 Subject: [PATCH] Remove obsolete code Signed-off-by: Tran Ngoc Nhan --- .../autoconfigure/server/GrpcServerFactoryConfigurations.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-grpc-spring-boot-autoconfigure/src/main/java/org/springframework/grpc/autoconfigure/server/GrpcServerFactoryConfigurations.java b/spring-grpc-spring-boot-autoconfigure/src/main/java/org/springframework/grpc/autoconfigure/server/GrpcServerFactoryConfigurations.java index ded2f37..1e7ce9e 100644 --- a/spring-grpc-spring-boot-autoconfigure/src/main/java/org/springframework/grpc/autoconfigure/server/GrpcServerFactoryConfigurations.java +++ b/spring-grpc-spring-boot-autoconfigure/src/main/java/org/springframework/grpc/autoconfigure/server/GrpcServerFactoryConfigurations.java @@ -1,5 +1,5 @@ /* - * Copyright 2024-2024 the original author or authors. + * Copyright 2024-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -64,7 +64,6 @@ class GrpcServerFactoryConfigurations { keyManager = bundle.getManagers().getKeyManagerFactory(); trustManager = properties.getSsl().isSecure() ? bundle.getManagers().getTrustManagerFactory() : io.grpc.netty.shaded.io.netty.handler.ssl.util.InsecureTrustManagerFactory.INSTANCE; - trustManager = bundle.getManagers().getTrustManagerFactory(); } ShadedNettyGrpcServerFactory factory = new ShadedNettyGrpcServerFactory(properties.getAddress(), builderCustomizers, keyManager, trustManager, properties.getSsl().getClientAuth());