Skip to content

Commit 201f694

Browse files
committed
chore: fire PaymentRequestedEvent asynchronously in PaymentService
1 parent aaf9643 commit 201f694

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/acme/payment/PaymentService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public Payment create(PaymentRequest request) {
3838

3939
repository.save(payment);
4040
LOGGER.info("Payment created: " + payment);
41-
event.fire(new PaymentRequestedEvent(payment));
41+
event.fireAsync(new PaymentRequestedEvent(payment));
4242
return payment;
4343
}
4444
}

0 commit comments

Comments
 (0)