From 24a14ae98ab5876eaf1231aee5b047a8e4bc6866 Mon Sep 17 00:00:00 2001
From: Dariusz Rybicki <dariusz@elixxir.io>
Date: Tue, 8 Nov 2022 22:49:48 +0100
Subject: [PATCH] Refactor CMixTrackServicesWithIdentity

---
 .../CMix/Functions/CMixTrackServicesWithIdentity.swift    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Sources/XXClient/CMix/Functions/CMixTrackServicesWithIdentity.swift b/Sources/XXClient/CMix/Functions/CMixTrackServicesWithIdentity.swift
index 088565c0..a3393e6e 100644
--- a/Sources/XXClient/CMix/Functions/CMixTrackServicesWithIdentity.swift
+++ b/Sources/XXClient/CMix/Functions/CMixTrackServicesWithIdentity.swift
@@ -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()
       )
     }
-- 
GitLab