Skip to content

Commit

Permalink
Did healthchecking when disabled fix
Browse files Browse the repository at this point in the history
  • Loading branch information
holashchand committed Mar 26, 2024
1 parent 690edda commit 32ac0d2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
Expand All @@ -29,6 +30,7 @@
import static dev.sunbirdrc.registry.middleware.util.Constants.*;

@Component
@ConditionalOnProperty(value = "did.enabled", havingValue = "true")
public class DIDService implements HealthIndicator {
private static final Logger logger = LoggerFactory.getLogger(DIDService.class);
@Value("${did.healthCheckURL}")
Expand Down

0 comments on commit 32ac0d2

Please sign in to comment.