done with chore

This commit was merged in pull request #4.
This commit is contained in:
lennyaiko
2025-04-10 16:48:37 +01:00
parent 26cf9307d2
commit d429b76e1d
+4 -3
View File
@@ -6,6 +6,9 @@ import requests
class KafkaIntegration:
BASE_URL = settings.SIMBRELLA_BASE_URL
_consumer = None
_consumer_config = {
@@ -83,9 +86,7 @@ class KafkaIntegration:
logger.info("Kafka consumer closed")
@staticmethod
def _call_disbursement_endpoint(
message, endpoint_url="http://localhost:8000/loans/disbursement"
):
def _call_disbursement_endpoint(message, endpoint_url=f"{BASE_URL}/Disbursement"):
"""Call an HTTP endpoint with the received message"""
try:
response = requests.post(endpoint_url, json=message, timeout=5)