Use a const instead

This commit is contained in:
Thorsten Sommer 2026-01-14 09:01:51 +01:00
parent 3f7b230e6b
commit ef3d17de0f
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -8,7 +8,7 @@ public class QdrantClientImplementation : DatabaseClient
private int HttpPort { get; }
private int GrpcPort { get; }
private string IpAddress => "localhost";
private QdrantClient GrpcClient { get; }
private string Fingerprint { get; }
@ -24,9 +24,11 @@ public class QdrantClientImplementation : DatabaseClient
this.GrpcClient = this.CreateQdrantClient();
}
private const string IP_ADDRESS = "localhost";
public QdrantClient CreateQdrantClient()
{
var address = "https://" + this.IpAddress + ":" + this.GrpcPort;
var address = "https://" + IP_ADDRESS + ":" + this.GrpcPort;
var channel = QdrantChannel.ForAddress(address, new ClientConfiguration
{
ApiKey = this.ApiToken,