@@ -335,16 +335,12 @@ private extension GroupV2UpdatesImpl {
335335
336336 do {
337337 // Try to use individual changes.
338- try await Promise . wrapAsync {
339- try await self . fetchAndApplyChangeActionsFromService (
340- secretParams: secretParams,
341- spamReportingMetadata: spamReportingMetadata,
342- source: source,
343- options: options
344- )
345- } . timeout ( seconds: GroupManager . groupUpdateTimeoutDuration, description: " Update via changes " ) {
346- return GroupsV2Error . timeout
347- } . awaitable ( )
338+ try await self . fetchAndApplyChangeActionsFromService (
339+ secretParams: secretParams,
340+ spamReportingMetadata: spamReportingMetadata,
341+ source: source,
342+ options: options
343+ )
348344 } catch {
349345 let shouldTrySnapshot = { ( ) -> Bool in
350346 // This should not fail over in the case of networking problems.
@@ -379,15 +375,11 @@ private extension GroupV2UpdatesImpl {
379375 }
380376
381377 // Failover to applying latest snapshot.
382- try await Promise . wrapAsync {
383- try await self . fetchAndApplyCurrentGroupV2SnapshotFromService (
384- secretParams: secretParams,
385- spamReportingMetadata: spamReportingMetadata,
386- options: options
387- )
388- } . timeout ( seconds: GroupManager . groupUpdateTimeoutDuration, description: " Update via snapshot " ) {
389- return GroupsV2Error . timeout
390- } . awaitable ( )
378+ try await self . fetchAndApplyCurrentGroupV2SnapshotFromService (
379+ secretParams: secretParams,
380+ spamReportingMetadata: spamReportingMetadata,
381+ options: options
382+ )
391383 }
392384 }
393385
0 commit comments