This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
commit 84048049f964ed325c6fa71bb6584cb4555600c3 Author: Andrew Stitcher <[email protected]> AuthorDate: Tue May 26 14:26:54 2026 -0400 NO-JIRA: [Python example broker] Improve readability of timeout --- python/examples/broker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/examples/broker.py b/python/examples/broker.py index a791646c7..37abf6ad0 100755 --- a/python/examples/broker.py +++ b/python/examples/broker.py @@ -269,7 +269,7 @@ class Broker(MessagingHandler): # Commit txn_time = time.monotonic() - txn.start_time if self.txn_timeout > 0 and txn_time > self.txn_timeout: - error = Condition('amqp:transaction:timeout', f"timeout: {self.txn_timeout}s time: {txn_time}s") + error = Condition('amqp:transaction:timeout', f"timeout: {self.txn_timeout:.1f}s time: {txn_time:.1f}s") else: error = txn.commit(self) if error is not None: --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
