Compare commits
2 Commits
ca78aa3962
...
5373ac6541
| Author | SHA1 | Date | |
|---|---|---|---|
| 5373ac6541 | |||
|
|
c9c93ac565 |
@@ -123,9 +123,14 @@ public class StorageBeanConfig {
|
||||
}
|
||||
|
||||
@Bean
|
||||
public SearchIndex clickHouseSearchIndex(
|
||||
public ClickHouseSearchIndex clickHouseSearchIndex(
|
||||
TenantProperties tenantProperties,
|
||||
@Qualifier("clickHouseJdbcTemplate") JdbcTemplate clickHouseJdbc) {
|
||||
// Return type is the concrete class so Spring exposes the bean under both
|
||||
// SearchIndex (for SearchIndexer) AND ClickHouseSearchIndex (for ExchangeMatchEvaluator,
|
||||
// which calls countExecutionsForAlerting — a method that exists only on the concrete type).
|
||||
// Declaring the return as the interface hides the concrete methods from autowire
|
||||
// matching and crashloops the app on startup.
|
||||
return new ClickHouseSearchIndex(tenantProperties.getId(), clickHouseJdbc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user