mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-28 20:47:49 +01:00
Server: remove hackRefresh thing
This commit is contained in:
@@ -3,8 +3,6 @@ package com.usatiuk.dhfs.objects.repository.peertrust;
|
||||
import com.usatiuk.dhfs.objects.repository.peersync.PeerInfo;
|
||||
import com.usatiuk.dhfs.objects.repository.peersync.PeerInfoService;
|
||||
import io.quarkus.logging.Log;
|
||||
import io.quarkus.scheduler.Scheduled;
|
||||
import io.smallrye.common.annotation.Blocking;
|
||||
import jakarta.enterprise.context.ApplicationScoped;
|
||||
import jakarta.inject.Inject;
|
||||
import org.apache.commons.lang3.tuple.Pair;
|
||||
@@ -51,13 +49,6 @@ public class PeerTrustManager implements X509TrustManager {
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME:
|
||||
@Scheduled(every = "15s", concurrentExecution = Scheduled.ConcurrentExecution.SKIP)
|
||||
@Blocking
|
||||
void hackRefresh() {
|
||||
reloadTrustManagerHosts(peerInfoService.getPeers());
|
||||
}
|
||||
|
||||
private synchronized void reloadTrustManager(Collection<Pair<String, X509Certificate>> certs) throws Exception {
|
||||
KeyStore ts = KeyStore.getInstance(KeyStore.getDefaultType());
|
||||
ts.load(null, null);
|
||||
|
||||
Reference in New Issue
Block a user