development #1
@ -10,7 +10,7 @@ public sealed class JournalDatabaseService(IJournalConfigService config) : IJour
|
||||
public const int KeySize = 32;
|
||||
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 object SqliteInitLock = new();
|
||||
private static readonly Lock SqliteInitLock = new();
|
||||
private static bool _sqliteInitialized;
|
||||
private static readonly IReadOnlyList<string> RequiredSchemaTables =
|
||||
["entries", "sections", "fragments", "tags", "fragment_tags"];
|
||||
|
||||
@ -31,7 +31,7 @@ public sealed class PythonSidecarAiService : IAiService
|
||||
: "ok";
|
||||
var healthy = !payload.TryGetProperty("healthy", out var healthyNode) ||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@ -2,7 +2,6 @@ using System.IO.Compression;
|
||||
using System.Globalization;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
||||
namespace Journal.Core.Services;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user