Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
uchiiii committed Nov 15, 2023
1 parent fb25274 commit 6178bcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aiokafka/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def __init__(self, **configs):
self.need_all_topic_metadata = False
self.unauthorized_topics = set()
self.internal_topics = set()
self.external_topics = set()
self.controller = None

self.config = copy.copy(self.DEFAULT_CONFIG)
Expand Down Expand Up @@ -193,7 +194,7 @@ def topics(self, exclude_internal_topics=True):
set: {topic (str), ...}
"""
if exclude_internal_topics:
return self.external_topics
return self.external_topics

Check warning on line 197 in aiokafka/cluster.py

View check run for this annotation

Codecov / codecov/patch

aiokafka/cluster.py#L197

Added line #L197 was not covered by tests
else:
return self._topics

Check warning on line 199 in aiokafka/cluster.py

View check run for this annotation

Codecov / codecov/patch

aiokafka/cluster.py#L199

Added line #L199 was not covered by tests

Expand Down

0 comments on commit 6178bcc

Please sign in to comment.