mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 08:21:37 +00:00
Use a readonly record struct
This commit is contained in:
parent
42d538d2d8
commit
cb453dc518
@ -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; }
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user