Respond to CR.

pull/1/head
Matthew Chen 7 years ago
parent 3aa28aee36
commit 39c7fd9f15

@ -308,10 +308,10 @@ NSString *const OWSContactsManagerKeyNextFullIntersectionDate = @"OWSContactsMan
}); });
return; return;
} else if (isFullIntersection) { } else if (isFullIntersection) {
DDLogInfo(@"%@ Doing full intersection with %zd contacts.", self.logTag, recipientIdsForIntersection.count); DDLogInfo(@"%@ Doing full intersection with %zu contacts.", self.logTag, recipientIdsForIntersection.count);
} else { } else {
DDLogInfo( DDLogInfo(
@"%@ Doing delta intersection with %zd contacts.", self.logTag, recipientIdsForIntersection.count); @"%@ Doing delta intersection with %zu contacts.", self.logTag, recipientIdsForIntersection.count);
} }
[self intersectContacts:recipientIdsForIntersection [self intersectContacts:recipientIdsForIntersection
@ -340,9 +340,9 @@ NSString *const OWSContactsManagerKeyNextFullIntersectionDate = @"OWSContactsMan
if (isFullIntersection) { if (isFullIntersection) {
// Don't do a full intersection more often than once every 6 hours. // Don't do a full intersection more often than once every 6 hours.
const NSTimeInterval kFullIntersectionRate = 6 * kHourInterval; const NSTimeInterval kMinFullIntersectionInterval = 6 * kHourInterval;
NSDate *nextFullIntersectionDate = NSDate *nextFullIntersectionDate = [NSDate
[NSDate dateWithTimeIntervalSince1970:[NSDate new].timeIntervalSince1970 + kFullIntersectionRate]; dateWithTimeIntervalSince1970:[NSDate new].timeIntervalSince1970 + kMinFullIntersectionInterval];
[transaction setDate:nextFullIntersectionDate [transaction setDate:nextFullIntersectionDate
forKey:OWSContactsManagerKeyNextFullIntersectionDate forKey:OWSContactsManagerKeyNextFullIntersectionDate
inCollection:OWSContactsManagerCollection]; inCollection:OWSContactsManagerCollection];

@ -3,9 +3,7 @@
// //
#import "SignalRecipient.h" #import "SignalRecipient.h"
#import "PhoneNumber.h"
#import "TSAccountManager.h" #import "TSAccountManager.h"
#import "YapDatabaseTransaction+OWS.h"
#import <YapDatabase/YapDatabaseConnection.h> #import <YapDatabase/YapDatabaseConnection.h>
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN

Loading…
Cancel
Save