Skip to content

Commit

Permalink
Only convert set to list in amqp1d _flush()
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-urdin committed Jun 30, 2021
1 parent 952f577 commit d11fc32
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gnocchi/amqp1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ def _flush(self):
for host_id, measures_by_names in six.iteritems(self._measures):
resource = resources[host_id]

mbn_keys = measures_by_names.keys()
names = (set(mbn_keys) if len(mbn_keys)
else set())

names = set(measures_by_names.keys())
for name in names:
if name not in archive_policies:
archive_policies[name] = (
Expand Down

0 comments on commit d11fc32

Please sign in to comment.