diff --git a/src/analytics/identity_lookup_info.rs b/src/analytics/identity_lookup_info.rs index 01b01a95a..62e79afea 100644 --- a/src/analytics/identity_lookup_info.rs +++ b/src/analytics/identity_lookup_info.rs @@ -28,8 +28,7 @@ pub struct IdentityLookupInfo { pub continent: Option>, pub client_id: Option, - /// Whether the sender of the request is the same as the address being looked up - pub same_sender: Option, + pub sender: Option, } impl IdentityLookupInfo { @@ -46,7 +45,7 @@ impl IdentityLookupInfo { country: Option>, continent: Option>, client_id: Option, - same_sender: Option, + sender: Option, ) -> Self { Self { timestamp: wc::analytics::time::now(), @@ -68,7 +67,7 @@ impl IdentityLookupInfo { continent, client_id, - same_sender, + sender, } } } diff --git a/src/handlers/identity.rs b/src/handlers/identity.rs index d2bfefe2b..37808b602 100644 --- a/src/handlers/identity.rs +++ b/src/handlers/identity.rs @@ -124,11 +124,6 @@ async fn handler_internal( .map(|geo| (geo.country, geo.continent, geo.region)) .unwrap_or((None, None, None)); - let same_sender = query - .sender - .as_ref() - .map(|sender| sender == &address.to_string()); - state.analytics.identity_lookup(IdentityLookupInfo::new( &query.0, address, @@ -141,7 +136,7 @@ async fn handler_internal( country, continent, query.client_id.clone(), - same_sender, + query.sender.clone(), )); }