}).collect(Collectors.toMap(Recipient::getRecipientId, r -> r));
recipientStore.addLegacyRecipients(recipients);
- Files.delete(file.toPath());
} catch (FileNotFoundException e) {
// nothing to migrate
} catch (IOException e) {
logger.warn("Failed to load recipient store", e);
throw new RuntimeException(e);
}
+ try {
+ Files.delete(file.toPath());
+ } catch (IOException e) {
+ logger.warn("Failed to load recipient store", e);
+ throw new RuntimeException(e);
+ }
}
private record Storage(List<Recipient> recipients, long lastId) {
}
senderKeyStore.addLegacySenderKeysShared(sharedSenderKeys);
+ } catch (IOException e) {
+ logger.info("Failed to load shared sender key store, ignoring", e);
+ }
+ try {
Files.delete(file.toPath());
} catch (IOException e) {
logger.info("Failed to load shared sender key store, ignoring", e);