Skip to content

Commit

Permalink
Merge pull request #121 from neuroforgede/wip/make_compose_client_bac…
Browse files Browse the repository at this point in the history
…kwards_compatible#main

make compose client backwards compatible with at least 1.7.1 (pre open source)
  • Loading branch information
s4ke authored Apr 19, 2024
2 parents 2c55e97 + e60ded9 commit 9a0e014
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
class Consumer(Identifiable):
target: REST_URL
name: str
mode: Optional[str]
headers: Dict[str, Any]
timeout: float
retry_backoff_every: int
retry_backoff_delay: str
retry_max: int
mode: str = "IN_ORDER"

@staticmethod
def from_raw(raw: RawConsumer, domain_aliases: Dict[str, str]) -> 'Consumer':
Expand Down
3 changes: 2 additions & 1 deletion client/compose_client/library/models/raw/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class RawConsumer:
retry_backoff_every: int
retry_backoff_delay: str
retry_max: int
mode: str

url: REST_URL
id: str
Expand All @@ -34,6 +33,8 @@ class RawConsumer:
health: str
events: REST_URL

mode: str = "IN_ORDER"

@staticmethod
def from_dict(dict: Dict[str, Any]) -> 'RawConsumer': ...

Expand Down

0 comments on commit 9a0e014

Please sign in to comment.