Skip to content

Commit

Permalink
[ServiceBus] Remove settled property (#12850)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhaoling authored Aug 4, 2020
1 parent 2c580e6 commit 138e5ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
3 changes: 2 additions & 1 deletion sdk/servicebus/azure-servicebus/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
- Removed instance variable `header`.

* Removed several properties and instance variables on PeekMessage and ReceivedMessage.
- Removed proeprty `partition_id` on both type.
- Removed property `partition_id` on both type.
- Removed property `settled` on both type.
- Removed instance variable `received_timestamp_utc` on both type.
- Removed property `settled` on `PeekMessage`.
- Removed property `expired` on `ReceivedMessage`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -878,16 +878,6 @@ def locked_until_utc(self):
self._expiry = utc_from_timestamp(expiry_in_seconds)
return self._expiry

@property
def settled(self):
# type: () -> bool
"""Whether the message has been settled.
This will aways be `True` for a message received using ReceiveAndDelete mode,
otherwise it will be `False` until the message is completed or otherwise settled.
:rtype: bool
"""
return self._settled


class ReceivedMessage(ReceivedMessageBase):
def _settle_message(
Expand Down

0 comments on commit 138e5ec

Please sign in to comment.