Skip to content

Commit cce35c6

Browse files
ref: Use dispatch queue in dependency container (#2833)
Avoid allocating one extra dispatch queue in the dependency container.
1 parent fb53d97 commit cce35c6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/Sentry/SentryDependencyContainer.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#import <SentryDebugImageProvider.h>
99
#import <SentryDefaultCurrentDateProvider.h>
1010
#import <SentryDependencyContainer.h>
11-
#import <SentryDispatchQueueWrapper.h>
1211
#import <SentryHub.h>
1312
#import <SentryNSNotificationCenterWrapper.h>
1413
#import <SentrySDK+Private.h>
@@ -204,7 +203,7 @@ - (SentryANRTracker *)getANRTracker:(NSTimeInterval)timeout
204203
initWithTimeoutInterval:timeout
205204
currentDateProvider:[SentryDefaultCurrentDateProvider sharedInstance]
206205
crashWrapper:self.crashWrapper
207-
dispatchQueueWrapper:[[SentryDispatchQueueWrapper alloc] init]
206+
dispatchQueueWrapper:self.dispatchQueueWrapper
208207
threadWrapper:self.threadWrapper];
209208
}
210209
}

0 commit comments

Comments
 (0)