fixed instalation

This commit is contained in:
YevhenBondarenko 2024-05-03 15:27:21 +02:00
parent e59c4a950c
commit 510e4b14fe

View File

@ -43,7 +43,7 @@ public class DefaultJwtSettingsService implements JwtSettingsService {
private final Optional<TbClusterService> tbClusterService;
private final JwtSettingsValidator jwtSettingsValidator;
@Lazy
private final JwtTokenFactory jwtTokenFactory;
private final Optional<JwtTokenFactory> jwtTokenFactory;
private volatile JwtSettings jwtSettings = null; //lazy init
@ -67,7 +67,7 @@ public class DefaultJwtSettingsService implements JwtSettingsService {
public JwtSettings reloadJwtSettings() {
log.trace("Executing reloadJwtSettings");
var settings = getJwtSettings(true);
jwtTokenFactory.reload();
jwtTokenFactory.ifPresent(JwtTokenFactory::reload);
return settings;
}