ls1intum / Hephaestus

Hephaestus - A Framework to Support Novice Software Engineers in Collaborative Environments
https://hephaestus.ase.cit.tum.de
MIT License
8 stars 1 forks source link

Fix: No Nats Connection Attempts if Disabled #166

Closed GODrums closed 2 weeks ago

GODrums commented 2 weeks ago

Motivation

If the NATS-server is unavailable, running the application-server will still fail due to unrelated connection attempts even if it's disabled. We want to make sure setting "nats.enabled: false" means there is no connection to the NATS-server made at all.

Description

During Application Startup, there are connection attempts made regardless of the nats.enabled-setting. This PR adds an additional check to avoid initializing the @Bean for the NATS-server when nats.enabled is set to false.

Testing Instructions

Checklist

General

Server (if applicable)