1
0
Files
pawkey-sk/packages
dakkar 06bd29f209 try to avoid insert races in FederatedInstanceService
Despite the cache, different processes can race to insert a row for
the same remote host.

This is particularly apparent in our unit tests, with
`test/unit/activitypub.ts` randomly failing.

This is a (somewhat clumsy) attempt at working around that race: trap
the "duplicate key value" error, and fetch the record.

Tests pass, with or without values in the cache.
2024-10-12 10:57:57 +01:00
..
2024-10-11 18:04:32 +00:00
2024-09-14 00:58:02 +02:00
2024-09-14 00:58:02 +02:00
2024-07-02 11:38:34 +09:00
2024-09-14 00:58:02 +02:00