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
...@@ -5,18 +5,18 @@ public struct CMixTrackServicesWithIdentity { ...@@ -5,18 +5,18 @@ public struct CMixTrackServicesWithIdentity {
public var run: (Int, TrackServicesCallback) throws -> Void public var run: (Int, TrackServicesCallback) throws -> Void
public func callAsFunction( public func callAsFunction(
_ identity: Int, e2eId: Int,
callback: TrackServicesCallback callback: TrackServicesCallback
) throws -> Void { ) throws -> Void {
try run(identity, callback) try run(e2eId, callback)
} }
} }
extension CMixTrackServicesWithIdentity { extension CMixTrackServicesWithIdentity {
public static func live(_ bindingsCMix: BindingsCmix) -> CMixTrackServicesWithIdentity { public static func live(_ bindingsCMix: BindingsCmix) -> CMixTrackServicesWithIdentity {
CMixTrackServicesWithIdentity { identity, callback in CMixTrackServicesWithIdentity { e2eId, callback in
try bindingsCMix.trackServices( try bindingsCMix.trackServices(
withIdentity: identity, withIdentity: e2eId,
cb: callback.makeBindingsHealthCallback() cb: callback.makeBindingsHealthCallback()
) )
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment