You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cs...@apache.org on 2024/05/27 14:57:42 UTC
(sling-org-apache-sling-distribution-journal) branch master updated: SLING-12327 - Use async send (#145)
This is an automated email from the ASF dual-hosted git repository.
cschneider pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal.git
The following commit(s) were added to refs/heads/master by this push:
new 081e8c3 SLING-12327 - Use async send (#145)
081e8c3 is described below
commit 081e8c37a4fedf4463d4648f9ac9f152c6cd5ac9
Author: Christian Schneider <cs...@adobe.com>
AuthorDate: Mon May 27 16:57:38 2024 +0200
SLING-12327 - Use async send (#145)
---
.../distribution/journal/impl/publisher/PackageDistributedNotifier.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/distribution/journal/impl/publisher/PackageDistributedNotifier.java b/src/main/java/org/apache/sling/distribution/journal/impl/publisher/PackageDistributedNotifier.java
index 8c5d60b..8f91e03 100644
--- a/src/main/java/org/apache/sling/distribution/journal/impl/publisher/PackageDistributedNotifier.java
+++ b/src/main/java/org/apache/sling/distribution/journal/impl/publisher/PackageDistributedNotifier.java
@@ -173,7 +173,7 @@ public class PackageDistributedNotifier implements TopologyChangeHandler {
private void sendEvt(String pubAgentName, DistributionQueueItem queueItem) {
try {
Event distributed = DistributionEvent.eventPackageDistributed(queueItem, pubAgentName);
- eventAdmin.sendEvent(distributed);
+ eventAdmin.postEvent(distributed);
lastDistributedOffsets.put(pubAgentName, (Long)(queueItem.getOrDefault(QueueItemFactory.RECORD_OFFSET, Long.MAX_VALUE)));
} catch (Exception e) {
LOG.warn("Exception when sending package distributed event for pubAgentName={}, pkgId={}", pubAgentName, queueItem.getPackageId(), e);