Skip to content

Commit 8aad33e

Browse files
Stebalienwillscott
andauthored
doc: code review
Co-Authored-By: Will <[email protected]>
1 parent cc0b5e1 commit 8aad33e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tiered.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (r Tiered) get(ctx context.Context, do func(routing.Routing) (interface{},
5353
}
5454

5555
// GetValue sequentially searches each sub-router for the given key, returning
56-
// the from the first sub-router to complete the query.
56+
// the value from the first sub-router to complete the query.
5757
func (r Tiered) GetValue(ctx context.Context, key string, opts ...routing.Option) ([]byte, error) {
5858
valInt, err := r.get(ctx, func(ri routing.Routing) (interface{}, error) {
5959
return ri.GetValue(ctx, key, opts...)
@@ -83,9 +83,6 @@ func (r Tiered) GetPublicKey(ctx context.Context, p peer.ID) (ci.PubKey, error)
8383
// sub-routers in parallel. Provide returns success as long as a single
8484
// sub-router succeeds, but still waits for all sub-routers to finish before
8585
// returning.
86-
//
87-
// If count > 0, it returns at most count providers. If count == 0, it returns
88-
// an unbounded number of providers.
8986
func (r Tiered) Provide(ctx context.Context, c cid.Cid, local bool) error {
9087
return Parallel{Routers: r.Routers}.Provide(ctx, c, local)
9188
}

0 commit comments

Comments
 (0)