Skip to content

Commit b0d4a71

Browse files
committed
fixing provider config thread safety (WIP)
1 parent 5a17a19 commit b0d4a71

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/picoded/dstack/stack/ProviderConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected GenericConvertMap<String, Object> getStackConfig(String name) {
118118
/**
119119
* Stores the respective stack providers
120120
*/
121-
protected final ConcurrentHashMap<String, CoreStack> providerStackMap = new ConcurrentHashMap<>();
121+
protected volatile ConcurrentHashMap<String, CoreStack> providerStackMap = new ConcurrentHashMap<>();
122122

123123
/**
124124
* Get the stack of the provider specified by the name,
@@ -158,7 +158,6 @@ public CoreStack getProviderStack(String name) {
158158
// Return result
159159
return cache;
160160
}
161-
162161
}
163162

164163
/**

0 commit comments

Comments
 (0)