Skip to content

Commit adb9313

Browse files
authored
Fix misplaced waitForPendingWrites (#3654)
* Fix misplaced waitForPendingWrites * reformat
1 parent 331f651 commit adb9313

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Firestore/Source/API/FIRFirestore.mm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,6 @@ - (FIRWriteBatch *)batch {
194194
writeBatch:_firestore->GetBatch()];
195195
}
196196

197-
- (void)waitForPendingWritesWithCompletion:(void (^)(NSError *_Nullable error))completion {
198-
_firestore->WaitForPendingWrites(util::MakeCallback(completion));
199-
}
200-
201197
- (void)runTransactionWithBlock:(id _Nullable (^)(FIRTransaction *, NSError **))updateBlock
202198
dispatchQueue:(dispatch_queue_t)queue
203199
completion:
@@ -318,6 +314,10 @@ - (void)shutdownWithCompletion:(nullable void (^)(NSError *_Nullable error))comp
318314
[self shutdownInternalWithCompletion:completion];
319315
}
320316

317+
- (void)waitForPendingWritesWithCompletion:(void (^)(NSError *_Nullable error))completion {
318+
_firestore->WaitForPendingWrites(util::MakeCallback(completion));
319+
}
320+
321321
@end
322322

323323
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)