Skip to content

Commit

Permalink
Reduce the size of the library (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Jul 8, 2024
1 parent 30074b8 commit c0d6387
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/charms/data_platform_libs/v0/data_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -2609,8 +2609,6 @@ def set_version(self, relation_id: int, version: str) -> None:
def set_subordinated(self, relation_id: int) -> None:
"""Raises the subordinated flag in the application relation databag.
The flag will be used to evaluate additional checks before emitting provider events.
Args:
relation_id: the identifier for a particular relation.
"""
Expand Down Expand Up @@ -2861,13 +2859,10 @@ def _on_relation_changed_event(self, event: RelationChangedEvent) -> None:
is_subordinate = event.relation.data[key].get("subordinated") == "true"

if is_subordinate:
# Check that provider units have joined.
if not remote_unit_data:
logger.debug("No provider units are available.")
return

if remote_unit_data.get("state") != "ready":
logger.debug("Subordinate provider unit not ready.")
return

# Check which data has changed to emit customs events.
Expand Down

0 comments on commit c0d6387

Please sign in to comment.