Skip to content

Commit 0b986d6

Browse files
committed
docs(conflict): Explain the target ID width and document LabelDistance
1 parent a25bff3 commit 0b986d6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎submitqueue/extension/conflict/tango/signature.go‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ import (
2424
)
2525

2626
// targetIDBytes is how much of a label's SHA-256 digest forms its target ID.
27+
// 8 bytes fit a uint64; a collision only adds a false conflict.
2728
const targetIDBytes = 8
2829

2930
// LabelDistance is one affected target: its label exactly as Tango reported it
3031
// and its distance from the nearest directly changed source.
3132
type LabelDistance struct {
32-
Label string
33+
// Label is the target label, unmodified from Tango's response.
34+
Label string
35+
36+
// Distance is 0 for a target a change touches directly and grows by one for each dependency edge away from one.
3337
Distance int32
3438
}
3539

0 commit comments

Comments
 (0)