Skip to content
Snippets Groups Projects
Commit 2a43e424 authored by OZGCloud's avatar OZGCloud
Browse files

create channel configuration for file-manager

parent 6a887ca8
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,16 @@ public class OzgCloudClientAutoConfiguration { ...@@ -90,6 +90,16 @@ public class OzgCloudClientAutoConfiguration {
.build(); .build();
} }
@Bean
@ConditionalOnProperty("ozgcloud.file-manager.address")
GrpcChannelConfigurator fileManagerConfigurator() {
return GrpcChannelConfigurator.builder()
.clientName(CLIENT_NAME_FILE_MANAGER)
.address(fileManagerProperties.getAddress())
.negotiationType(fileManagerProperties.getNegotiationType())
.build();
}
@Bean @Bean
GrpcChannelsProperties clientProperties(Collection<GrpcChannelConfigurator> configurators) { GrpcChannelsProperties clientProperties(Collection<GrpcChannelConfigurator> configurators) {
var properties = new GrpcChannelsProperties(); var properties = new GrpcChannelsProperties();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment