From 26adf20ee813f3c236d253d5bb333fa7b0bebdf7 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Tue, 9 Jan 2024 11:49:12 -0500 Subject: [PATCH] Make "fetch profile" endpoints `@ManagedAsync` --- .../textsecuregcm/controllers/ProfileController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java index 9e355ae5e..5f1d83f8a 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java @@ -55,6 +55,7 @@ import javax.ws.rs.core.Context; import javax.ws.rs.core.HttpHeaders; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; +import org.glassfish.jersey.server.ManagedAsync; import org.signal.libsignal.protocol.IdentityKey; import org.signal.libsignal.protocol.ServiceId; import org.signal.libsignal.zkgroup.InvalidInputException; @@ -225,6 +226,7 @@ public class ProfileController { @GET @Produces(MediaType.APPLICATION_JSON) @Path("/{identifier}/{version}") + @ManagedAsync public VersionedProfileResponse getProfile( @Auth Optional auth, @HeaderParam(HeaderUtils.UNIDENTIFIED_ACCESS_KEY) Optional accessKey, @@ -275,6 +277,7 @@ public class ProfileController { @GET @Produces(MediaType.APPLICATION_JSON) @Path("/{identifier}") + @ManagedAsync public BaseProfileResponse getUnversionedProfile( @Auth Optional auth, @HeaderParam(HeaderUtils.UNIDENTIFIED_ACCESS_KEY) Optional accessKey,