mirror of https://github.com/apache/druid.git
refresh thread should be daemon
This commit is contained in:
parent
3a849b0341
commit
193c7259f6
|
@ -41,7 +41,8 @@ public class FileSessionCredentialsProvider implements AWSCredentialsProvider {
|
|||
private volatile String secretKey;
|
||||
|
||||
private final ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor(
|
||||
new ThreadFactoryBuilder().setNameFormat("FileSessionCredentialsProviderRefresh-%d").build()
|
||||
new ThreadFactoryBuilder().setNameFormat("FileSessionCredentialsProviderRefresh-%d")
|
||||
.setDaemon(true).build()
|
||||
);
|
||||
|
||||
public FileSessionCredentialsProvider(String sessionCredentials) {
|
||||
|
|
Loading…
Reference in New Issue