style: apply dotnet format (round 2)
Co-Authored-By: Warp <agent@warp.dev>
This commit is contained in:
parent
e7d2bdfaa8
commit
8a29bd4bd1
@ -10,7 +10,7 @@ public sealed class JournalDatabaseService(IJournalConfigService config) : IJour
|
|||||||
public const int KeySize = 32;
|
public const int KeySize = 32;
|
||||||
public const int Iterations = 600_000;
|
public const int Iterations = 600_000;
|
||||||
private static readonly byte[] DatabaseKeySalt = Encoding.UTF8.GetBytes("a_fixed_salt_for_the_db_key_deriv");
|
private static readonly byte[] DatabaseKeySalt = Encoding.UTF8.GetBytes("a_fixed_salt_for_the_db_key_deriv");
|
||||||
private static readonly object SqliteInitLock = new();
|
private static readonly Lock SqliteInitLock = new();
|
||||||
private static bool _sqliteInitialized;
|
private static bool _sqliteInitialized;
|
||||||
private static readonly IReadOnlyList<string> RequiredSchemaTables =
|
private static readonly IReadOnlyList<string> RequiredSchemaTables =
|
||||||
["entries", "sections", "fragments", "tags", "fragment_tags"];
|
["entries", "sections", "fragments", "tags", "fragment_tags"];
|
||||||
|
|||||||
@ -31,7 +31,7 @@ public sealed class PythonSidecarAiService : IAiService
|
|||||||
: "ok";
|
: "ok";
|
||||||
var healthy = !payload.TryGetProperty("healthy", out var healthyNode) ||
|
var healthy = !payload.TryGetProperty("healthy", out var healthyNode) ||
|
||||||
healthyNode.ValueKind is JsonValueKind.True ||
|
healthyNode.ValueKind is JsonValueKind.True ||
|
||||||
(healthyNode.ValueKind is JsonValueKind.False ? false : true);
|
(healthyNode.ValueKind is not JsonValueKind.False);
|
||||||
return new AiHealthDto(provider, Enabled: true, Healthy: healthy, Message: message);
|
return new AiHealthDto(provider, Enabled: true, Healthy: healthy, Message: message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,6 @@ using System.IO.Compression;
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
|
||||||
|
|
||||||
namespace Journal.Core.Services;
|
namespace Journal.Core.Services;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user