Skip to content

Commit 00a5953

Browse files
committed
Fix circular dependency
1 parent 95e3c18 commit 00a5953

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/eu/openanalytics/containerproxy/backend/dispatcher/proxysharing/ProxySharingScaler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
import org.slf4j.LoggerFactory;
6565
import org.springframework.beans.factory.annotation.Autowired;
6666
import org.springframework.context.ApplicationEventPublisher;
67+
import org.springframework.context.annotation.Lazy;
6768
import org.springframework.context.event.EventListener;
6869
import org.springframework.core.env.Environment;
6970
import org.springframework.integration.leader.event.OnGrantedEvent;
@@ -104,6 +105,7 @@ public class ProxySharingScaler implements AutoCloseable {
104105
private Instant lastScaleUp = null;
105106

106107
@Inject
108+
@Lazy
107109
private IProxyTestStrategy testStrategy;
108110
@Inject
109111
private IContainerBackend containerBackend;

0 commit comments

Comments
 (0)