Skip to content

Commit

Permalink
Merge pull request #9 from labteral/develop
Browse files Browse the repository at this point in the history
bugfixes 2.214.1
  • Loading branch information
brunneis authored Apr 15, 2021
2 parents 904b2b0 + 23ea90c commit 6497633
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions stopover/broker.py
Original file line number Diff line number Diff line change
@@ -255,9 +255,9 @@ def _get_stream_partition_numbers(self, stream: str):
partition_numbers = []
self.partitions_by_stream[stream] = partition_numbers

if 'streams' in self.config and stream in self.config['streams']:
try:
partitions_target = self.config['streams'][stream]['partitions']
else:
except KeyError:
partitions_target = self.config['global']['partitions']

stream_path = self._get_stream_path(stream)
2 changes: 1 addition & 1 deletion stopover/partition.py
Original file line number Diff line number Diff line change
@@ -129,7 +129,7 @@ def prune(self, ttl: int):
keys_to_delete = []

with self.lock:
for key, value in self._store.scan(prefix='message:'):
for key, value in self._store.scan(prefix=Partition.MESSAGE):

# Backwards compatibility
if isinstance(value, bytes):
2 changes: 1 addition & 1 deletion stopover/stopover.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

version = '2.214.0'
version = '2.214.1'

banner = f"""
███████████ ███████████

0 comments on commit 6497633

Please sign in to comment.