Skip to content

Commit 8cb817b

Browse files
committed
Changed kafka_conf to only kafka
1 parent 170d594 commit 8cb817b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Conf.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ def __init__(self, path: str) -> None:
99
config.read(path)
1010

1111
# Accessing values from the configuration file
12-
self.kafka_servers: str = config.get("kafka_conf", "kafka_servers")
12+
self.kafka_servers: str = config.get("kafka", "kafka_servers")
1313
self.topic: list[str] = []
14-
self.topic.append(config.get("kafka_conf", "topic"))
15-
self.group_id: str = config.get("kafka_conf", "group_id")
16-
self.username: str = config.get("kafka_conf", "username")
17-
self.password: str = config.get("kafka_conf", "password")
14+
self.topic.append(config.get("kafka", "topic"))
15+
self.group_id: str = config.get("kafka", "group_id")
16+
self.username: str = config.get("kafka", "username")
17+
self.password: str = config.get("kafka", "password")
1818
self.building: str = config.get("building", "name")
1919
self.redis_host: str = config.get("redis", "host")
2020
self.redis_port: int = int(config.get("redis", "port"))

0 commit comments

Comments
 (0)