mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-11-30 00:56:50 +00:00
Add comment regarding when a one-time donation record might not be found
This commit is contained in:
1 parent
755a87c74d
commit
d400e700ac
1 file changed
+2
+2
@@ -51,6 +51,8 @@ public class OneTimeDonationsManager {
|
||||
|
||||
final GetItemResponse getItemResponse = dynamoDbClient.getItem(getItemRequest);
|
||||
if (!getItemResponse.hasItem()) {
|
||||
// This can happen if the upstream call races the asynchronous webhook that notifies of payment success,
|
||||
// and usually the `paidAt` will be within a few seconds of the fallback
|
||||
Metrics.counter(ONETIME_DONATION_NOT_FOUND_COUNTER_NAME, Tags.of("processor", paymentProvider.name())).increment();
|
||||
return fallbackTimestamp;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user