mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 13:21:37 +00:00
Use a readonly record struct
This commit is contained in:
parent
42d538d2d8
commit
cb453dc518
@ -3,7 +3,7 @@
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The response of the Qdrant information request.
|
/// The response of the Qdrant information request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public record struct QdrantInfo
|
public readonly record struct QdrantInfo
|
||||||
{
|
{
|
||||||
public string Path { get; init; }
|
public string Path { get; init; }
|
||||||
|
|
||||||
|
|||||||
@ -15,14 +15,7 @@ public sealed partial class RustService
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Console.WriteLine(e);
|
Console.WriteLine(e);
|
||||||
return new QdrantInfo
|
return default;
|
||||||
{
|
|
||||||
Path = string.Empty,
|
|
||||||
PortHttp = 0,
|
|
||||||
PortGrpc = 0,
|
|
||||||
Fingerprint = string.Empty,
|
|
||||||
ApiToken = string.Empty,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user