Skip to content

Commit

Permalink
update TTL warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq committed Apr 2, 2024
1 parent 99f5b38 commit d3fdfee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/py/flwr/common/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ def create_reply(self, content: RecordSet, ttl: float | None = None) -> Message:
"""
if ttl:
warnings.warn(
"TTL in a Message's Metadata is not being used. Messages do not "
"expire. This behaviour will change in a future version of Flower",
"A custom TTL was set, but note that the SuperLink does not enforce the TTL yet."
"The SuperLink will start enforcing the TTL in a future version of Flower.",
stacklevel=2,
)
# If no TTL passed, use default for message creation (will update after
Expand Down
4 changes: 2 additions & 2 deletions src/py/flwr/server/driver/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def create_message( # pylint: disable=too-many-arguments
_, run_id = self._get_grpc_driver_and_run_id()
if ttl:
warnings.warn(
"TTL in a Message's Metadata is not being used. Messages do not "
"expire. This behaviour will change in a future version of Flower",
"A custom TTL was set, but note that the SuperLink does not enforce the TTL yet."
"The SuperLink will start enforcing the TTL in a future version of Flower.",
stacklevel=2,
)

Expand Down

0 comments on commit d3fdfee

Please sign in to comment.