Skip to content

Commit

Permalink
Fix malsite timeout pixel name (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
mallexxx authored Jan 24, 2025
1 parent 123efda commit b33273c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Sources/MaliciousSiteProtection/API/APIRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public extension APIRequestType {
let threatKind: ThreatKind
let revision: Int?

init(threatKind: ThreatKind, revision: Int?) {
public init(threatKind: ThreatKind, revision: Int?) {
self.threatKind = threatKind
self.revision = revision
}
Expand All @@ -74,7 +74,7 @@ public extension APIRequestType {
let threatKind: ThreatKind
let revision: Int?

init(threatKind: ThreatKind, revision: Int?) {
public init(threatKind: ThreatKind, revision: Int?) {
self.threatKind = threatKind
self.revision = revision
}
Expand All @@ -97,6 +97,10 @@ public extension APIRequestType {

let hashPrefix: String

public init(hashPrefix: String) {
self.hashPrefix = hashPrefix
}

var requestType: APIRequestType {
.matches(self)
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/MaliciousSiteProtection/Model/Event.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public enum Event: PixelKitEventV2 {
case .settingToggled:
return "malicious-site-protection_feature-toggled"
case .matchesApiTimeout:
return "malicious-site-protection.client-timeout"
return "malicious-site-protection_client-timeout"
case .matchesApiFailure:
return "malicious-site-protection.matches-api-error"
return "malicious-site-protection_matches-api-error"
}
}

Expand Down

0 comments on commit b33273c

Please sign in to comment.