diff --git a/transaction_processing/transaction_processing.py b/transaction_processing/transaction_processing.py index df41a2cb5..133311667 100644 --- a/transaction_processing/transaction_processing.py +++ b/transaction_processing/transaction_processing.py @@ -1,5 +1,6 @@ import time + class TransactionProcessor: def __init__(self, transaction_validator, transaction_router): self.transaction_validator = transaction_validator @@ -8,11 +9,11 @@ def __init__(self, transaction_validator, transaction_router): def process_transaction(self, transaction): errors = self.transaction_validator.validate_transaction(transaction) if errors: - print('Transaction errors:', errors) + print("Transaction errors:", errors) return False else: channel = self.transaction_router.route_transaction(transaction) - print('Transaction routed to:', channel) + print("Transaction routed to:", channel) time.sleep(1) - print('Transaction processed successfully.') + print("Transaction processed successfully.") return True