Skip to content
Snippets Groups Projects
Commit d736f952 authored by Rustam Lotsmanenko (EPAM)'s avatar Rustam Lotsmanenko (EPAM)
Browse files

fix ConcurrentModificationException in DS resolver(GONRG-8871)

parent d236e71c
No related branches found
No related tags found
1 merge request!483fix ConcurrentModificationException in DS resolver(GONRG-8871)
......@@ -68,18 +68,17 @@ public class OsmDatastoreDestinationResolver implements DsDestinationResolver {
}
private Datastore getDatastoreFor(Destination destination, String key, String projectId) {
return datastoreCache.computeIfAbsent(key, k ->
DatastoreOptions.newBuilder()
return DatastoreOptions.newBuilder()
.setRetrySettings(RETRY_SETTINGS)
.setTransportOptions(TRANSPORT_OPTIONS)
.setProjectId(projectId)
.setNamespace(destination.getNamespace().getName())
.build()
.getService());
.getService();
}
@Override
public void close() throws IOException {
//Method stub
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment