fix: Fix milvus builder configuration setters

This commit is contained in:
siddharth Paul
2023-12-05 00:21:21 +05:30
committed by Christian Tzolov
parent f6dc8f6bd8
commit 76cba5833c

View File

@@ -78,27 +78,27 @@ public class MilvusVectorStoreAutoConfiguration {
}
if (clientProperties.isSecure() && StringUtils.hasText(clientProperties.getToken())) {
builder.withUri(clientProperties.getToken());
builder.withToken(clientProperties.getToken());
}
if (clientProperties.isSecure() && StringUtils.hasText(clientProperties.getClientKeyPath())) {
builder.withUri(clientProperties.getClientKeyPath());
builder.withClientKeyPath(clientProperties.getClientKeyPath());
}
if (clientProperties.isSecure() && StringUtils.hasText(clientProperties.getClientPemPath())) {
builder.withUri(clientProperties.getClientPemPath());
builder.withClientPemPath(clientProperties.getClientPemPath());
}
if (clientProperties.isSecure() && StringUtils.hasText(clientProperties.getCaPemPath())) {
builder.withUri(clientProperties.getCaPemPath());
builder.withCaPemPath(clientProperties.getCaPemPath());
}
if (clientProperties.isSecure() && StringUtils.hasText(clientProperties.getServerPemPath())) {
builder.withUri(clientProperties.getServerPemPath());
builder.withServerPemPath(clientProperties.getServerPemPath());
}
if (clientProperties.isSecure() && StringUtils.hasText(clientProperties.getServerName())) {
builder.withUri(clientProperties.getServerName());
builder.withServerName(clientProperties.getServerName());
}
return new MilvusServiceClient(builder.build());