Skip to content
Snippets Groups Projects
Commit 24a14ae9 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Refactor CMixTrackServicesWithIdentity

parent ee3ce547
No related branches found
No related tags found
2 merge requests!138Notifications,!102Release 1.0.0
This commit is part of merge request !138. Comments created here will be created in the context of that merge request.
......@@ -5,18 +5,18 @@ public struct CMixTrackServicesWithIdentity {
public var run: (Int, TrackServicesCallback) throws -> Void
public func callAsFunction(
_ identity: Int,
e2eId: Int,
callback: TrackServicesCallback
) throws -> Void {
try run(identity, callback)
try run(e2eId, callback)
}
}
extension CMixTrackServicesWithIdentity {
public static func live(_ bindingsCMix: BindingsCmix) -> CMixTrackServicesWithIdentity {
CMixTrackServicesWithIdentity { identity, callback in
CMixTrackServicesWithIdentity { e2eId, callback in
try bindingsCMix.trackServices(
withIdentity: identity,
withIdentity: e2eId,
cb: callback.makeBindingsHealthCallback()
)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment