vttranlina commented on code in PR #1925:
URL: https://github.com/apache/james-project/pull/1925#discussion_r1458327310


##########
mailbox/postgres/src/main/java/org/apache/james/mailbox/postgres/DeleteMessageListener.java:
##########
@@ -146,4 +153,8 @@ private Mono<Boolean> isUnreferenced(PostgresMessageId id, 
PostgresMailboxMessag
             .map(count -> true)
             .defaultIfEmpty(false);
     }
+
+    private Mono<Void> deleteAttachment(PostgresMessageId messageId, 
PostgresAttachmentDAO attachmentDAO) {
+        return attachmentDAO.deleteByMessageId(messageId);

Review Comment:
   Because Cassandra DeleteMessageListener was coded in 2020
   While BlobGC was coded in 2021
   haha, just for fun



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to