Trace stash operations (#682)

* Trace stash operations

* fix build
This commit is contained in:
Marwan Sulaiman
2018-09-20 10:59:42 -04:00
committed by GitHub
parent e1b7fbcff0
commit 5dcaeb8ab8
7 changed files with 43 additions and 17 deletions
+3 -3
View File
@@ -105,7 +105,7 @@ func (p *protocol) Info(ctx context.Context, mod, ver string) ([]byte, error) {
defer span.End()
info, err := p.s.Info(ctx, mod, ver)
if errors.IsNotFoundErr(err) {
err = p.stasher.Stash(mod, ver)
err = p.stasher.Stash(ctx, mod, ver)
if err != nil {
return nil, errors.E(op, err)
}
@@ -124,7 +124,7 @@ func (p *protocol) GoMod(ctx context.Context, mod, ver string) ([]byte, error) {
defer span.End()
goMod, err := p.s.GoMod(ctx, mod, ver)
if errors.IsNotFoundErr(err) {
err = p.stasher.Stash(mod, ver)
err = p.stasher.Stash(ctx, mod, ver)
if err != nil {
return nil, errors.E(op, err)
}
@@ -143,7 +143,7 @@ func (p *protocol) Zip(ctx context.Context, mod, ver string) (io.ReadCloser, err
defer span.End()
zip, err := p.s.Zip(ctx, mod, ver)
if errors.IsNotFoundErr(err) {
err = p.stasher.Stash(mod, ver)
err = p.stasher.Stash(ctx, mod, ver)
if err != nil {
return nil, errors.E(op, err)
}