Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshkshah1992 committed Sep 20, 2023
1 parent da9ad17 commit 46b5374
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions caboose.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ func (c *Caboose) Fetch(ctx context.Context, path string, cb DataCallback) error
ctx, span := spanTrace(ctx, "Fetch", trace.WithAttributes(attribute.String("path", path)))
defer span.End()


if err == nil {
sc := trace.NewSpanContext(trace.SpanContextConfig{
TraceID: tid,
Expand All @@ -230,7 +229,7 @@ func (c *Caboose) Fetch(ctx context.Context, path string, cb DataCallback) error
ctx = trace.ContextWithRemoteSpanContext(ctx, sc)
}

return c.pool.fetchResourceWith(ctx, path, cb, c.getAffinity(ctx))
return c.pool.fetchResourceWith(ctx, path, cb, c.GetAffinity(ctx))
}

func (c *Caboose) Has(ctx context.Context, it cid.Cid) (bool, error) {
Expand Down

0 comments on commit 46b5374

Please sign in to comment.