Skip to content

Commit d7953d2

Browse files
authored
Merge pull request #1437 from ahoppen/3-emojis
Use 3 emoji markers in the index log
2 parents efd7f99 + d2e7f97 commit d7953d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/SKCore/IndexTaskID.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ public enum IndexTaskID: Sendable {
3636
public var emojiRepresentation: String {
3737
// Multiply by 2 and optionally add 1 to make sure preparation and update index store have distinct IDs.
3838
// Run .hashValue to make sure we semi-randomly pick new emoji markers for new tasks
39+
let numEmojis = 3
3940
switch self {
4041
case .preparation(id: let id):
41-
return Self.numberToEmojis((id * 2).hashValue, numEmojis: 2)
42+
return Self.numberToEmojis((id * 2).hashValue, numEmojis: numEmojis)
4243
case .updateIndexStore(id: let id):
43-
return Self.numberToEmojis((id * 2 + 1).hashValue, numEmojis: 2)
44+
return Self.numberToEmojis((id * 2 + 1).hashValue, numEmojis: numEmojis)
4445
}
4546
}
4647
}

0 commit comments

Comments
 (0)