mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-30 13:58:04 +08:00
[Improvement] Upgrade dependencies and fix vulnerabilities. (#2190)
This commit is contained in:
@@ -44,10 +44,8 @@ public class MetaEmbeddingTask implements CommandLineRunner {
|
||||
|
||||
private void embeddingStorePersistFile() {
|
||||
EmbeddingStoreFactory embeddingStoreFactory = EmbeddingStoreFactoryProvider.getFactory();
|
||||
if (embeddingStoreFactory instanceof InMemoryEmbeddingStoreFactory) {
|
||||
if (embeddingStoreFactory instanceof InMemoryEmbeddingStoreFactory inMemoryFactory) {
|
||||
long startTime = System.currentTimeMillis();
|
||||
InMemoryEmbeddingStoreFactory inMemoryFactory =
|
||||
(InMemoryEmbeddingStoreFactory) embeddingStoreFactory;
|
||||
inMemoryFactory.persistFile();
|
||||
long duration = System.currentTimeMillis() - startTime;
|
||||
log.info("Embedding file has been regularly persisted in {} milliseconds", duration);
|
||||
|
||||
@@ -146,6 +146,9 @@ public class MetricDrillDownChecker {
|
||||
}
|
||||
|
||||
private List<DrillDownDimension> getDrillDownDimensions(MetricResp metricResp) {
|
||||
if (metricService == null) {
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
return metricService.getDrillDownDimension(metricResp.getId());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user