[ios] Set separate dispatch queues for firestore and database
This commit is contained in:
parent
54f41565db
commit
fa9bac1a72
|
@ -10,14 +10,17 @@
|
|||
@implementation RNFirebaseDatabase
|
||||
RCT_EXPORT_MODULE();
|
||||
|
||||
// TODO document methods
|
||||
// Run on a different thread
|
||||
- (dispatch_queue_t)methodQueue {
|
||||
return dispatch_queue_create("io.invertase.react-native-firebase.database", DISPATCH_QUEUE_SERIAL);
|
||||
}
|
||||
|
||||
- (id)init {
|
||||
self = [super init];
|
||||
if (self != nil) {
|
||||
_dbReferences = [[NSMutableDictionary alloc] init];
|
||||
_transactions = [[NSMutableDictionary alloc] init];
|
||||
_transactionQueue = dispatch_queue_create("io.invertase.react-native-firebase", DISPATCH_QUEUE_CONCURRENT);
|
||||
_transactionQueue = dispatch_queue_create("io.invertase.react-native-firebase.database.transactions", DISPATCH_QUEUE_CONCURRENT);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
@ -446,7 +449,3 @@ RCT_EXPORT_METHOD(off:(NSString *)key
|
|||
@implementation RNFirebaseDatabase
|
||||
@end
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -10,11 +10,16 @@
|
|||
@implementation RNFirebaseFirestore
|
||||
RCT_EXPORT_MODULE();
|
||||
|
||||
// Run on a different thread
|
||||
- (dispatch_queue_t)methodQueue {
|
||||
return dispatch_queue_create("io.invertase.react-native-firebase.firestore", DISPATCH_QUEUE_SERIAL);
|
||||
}
|
||||
|
||||
- (id)init {
|
||||
self = [super init];
|
||||
if (self != nil) {
|
||||
_transactions = [[NSMutableDictionary alloc] init];
|
||||
_transactionQueue = dispatch_queue_create("io.invertase.react-native-firebase.firestore", DISPATCH_QUEUE_CONCURRENT);
|
||||
_transactionQueue = dispatch_queue_create("io.invertase.react-native-firebase.firestore.transactions", DISPATCH_QUEUE_CONCURRENT);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ RCT_EXPORT_MODULE(RNFirebaseStorage);
|
|||
|
||||
// Run on a different thread
|
||||
- (dispatch_queue_t)methodQueue {
|
||||
return dispatch_queue_create("com.invertase.firebase.storage", DISPATCH_QUEUE_SERIAL);
|
||||
return dispatch_queue_create("io.invertase.react-native-firebase.storage", DISPATCH_QUEUE_SERIAL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue