aboutsummaryrefslogtreecommitdiff
path: root/reachability/walk.go
diff options
context:
space:
mode:
Diffstat (limited to 'reachability/walk.go')
-rw-r--r--reachability/walk.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/reachability/walk.go b/reachability/walk.go
index c89d29e9..8e0a0902 100644
--- a/reachability/walk.go
+++ b/reachability/walk.go
@@ -5,6 +5,8 @@ import (
)
// Walk is one single-use iterator traversal.
+//
+// Labels: MT-Unsafe.
type Walk struct {
reachability *Reachability
domain Domain
@@ -20,6 +22,10 @@ type Walk struct {
//
// In DomainCommits, when a commit-graph reader is attached, parent expansion
// may use commit-graph metadata for speed.
+//
+// Walk retains haves and wants as provided.
+//
+// Labels: Life-Parent.
func (r *Reachability) Walk(domain Domain, haves, wants map[objectid.ObjectID]struct{}) *Walk {
walk := &Walk{
reachability: r,