Use a readonly record struct

This commit is contained in:
Thorsten Sommer 2026-01-14 09:03:20 +01:00
parent 42d538d2d8
commit cb453dc518
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 2 additions and 9 deletions

View File

@ -3,7 +3,7 @@
/// <summary>
/// The response of the Qdrant information request.
/// </summary>
public record struct QdrantInfo
public readonly record struct QdrantInfo
{
public string Path { get; init; }

View File

@ -15,14 +15,7 @@ public sealed partial class RustService
catch (Exception e)
{
Console.WriteLine(e);
return new QdrantInfo
{
Path = string.Empty,
PortHttp = 0,
PortGrpc = 0,
Fingerprint = string.Empty,
ApiToken = string.Empty,
};
return default;
}
}
}