INNER CODE UNIT · Java
run
GrapheneOS/AttestationServer · src/main/java/app/attestation/server/AlertDispatcher.java:37
public void run() {
final SQLiteConnection conn;
try {
conn = AttestationServer.open(AttestationServer.ATTESTATION_DATABASE);
} catch (final SQLiteException e) {
logger.log(CRIT, "database error, cannot set up AlertDispatcher thread", e);
return;
}
final SQLiteStatement selectConfiguration;
final SQLiteStatement selectAccountsForExpiryAlert;
final SQLiteStatement selectExpired;
final SQLiteStatement updateExpired;
final SQLiteStatement selectFailed;
final SQLiteStatement selectEmails;
try {
selectConfiguration = conn.prepare("""
SELECT
(SELECT value FROM Configuration WHERE key = 'emailLocal'),