Skip to content

Commit

Permalink
Change str to repr. Change default commit interval to 2, might lower …
Browse files Browse the repository at this point in the history
…it more
  • Loading branch information
tim-quix committed Jul 3, 2024
1 parent 3f16292 commit 8a945e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quixstreams/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def __init__(
quix_sdk_token: Optional[str] = None,
consumer_group: Optional[str] = None,
auto_offset_reset: AutoOffsetReset = "latest",
commit_interval: float = 5.0,
commit_interval: float = 2.0,
consumer_extra_config: Optional[dict] = None,
producer_extra_config: Optional[dict] = None,
state_dir: str = "state",
Expand Down
2 changes: 1 addition & 1 deletion quixstreams/state/recovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(
self._recovery_consume_position: Optional[int] = None
self._initial_offset: Optional[int] = None

def __str__(self):
def __repr__(self):
return f"{self.changelog_name}[{self.partition_num}]"

@property
Expand Down

0 comments on commit 8a945e9

Please sign in to comment.