mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix rebase breakage.
This commit is contained in:
parent
1b1312c455
commit
95387dd220
3 changed files with 13 additions and 3 deletions
|
@ -4,7 +4,8 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
class OWS111UDAttributesMigration: OWSDatabaseMigration {
|
||||
@objc
|
||||
public class OWS111UDAttributesMigration: OWSDatabaseMigration {
|
||||
|
||||
// MARK: - Singletons
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
[[OWS106EnsureProfileComplete alloc] initWithPrimaryStorage:primaryStorage],
|
||||
[[OWS107LegacySounds alloc] initWithPrimaryStorage:primaryStorage],
|
||||
[[OWS108CallLoggingPreference alloc] initWithPrimaryStorage:primaryStorage],
|
||||
[[OWS109OutgoingMessageState alloc] initWithPrimaryStorage:primaryStorage]
|
||||
[[OWS109OutgoingMessageState alloc] initWithPrimaryStorage:primaryStorage],
|
||||
[[OWS111UDAttributesMigration alloc] initWithPrimaryStorage:primaryStorage],
|
||||
];
|
||||
}
|
||||
|
|
|
@ -4,7 +4,16 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public func BenchAsync(title: String, block: (() -> Void) -> Void) {
|
||||
/// Benchmark async code by calling the passed in block parameter when the work
|
||||
/// is done.
|
||||
///
|
||||
/// BenchAsync(title: "my benchmark") { completeBenchmark in
|
||||
/// foo {
|
||||
/// completeBenchmark()
|
||||
/// fooCompletion()
|
||||
/// }
|
||||
/// }
|
||||
public func BenchAsync(title: String, block: (@escaping () -> Void) -> Void) {
|
||||
let startTime = CFAbsoluteTimeGetCurrent()
|
||||
|
||||
block {
|
||||
|
|
Loading…
Reference in a new issue