From e5bbc4d10904554dbc8fd5afd06f66814f7b173e Mon Sep 17 00:00:00 2001 From: Andrew Suffield Date: Fri, 26 Mar 2021 16:03:49 +0000 Subject: plumbing: wire up contexts for Transport.AdvertisedReferences (#246) * plumbing: wire up contexts for Transport.AdvertisedReferences * add more tests for context wiring --- remote.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'remote.go') diff --git a/remote.go b/remote.go index dde0445..85c28ee 100644 --- a/remote.go +++ b/remote.go @@ -109,7 +109,7 @@ func (r *Remote) PushContext(ctx context.Context, o *PushOptions) (err error) { defer ioutil.CheckClose(s, &err) - ar, err := s.AdvertisedReferences() + ar, err := s.AdvertisedReferencesContext(ctx) if err != nil { return err } @@ -320,7 +320,7 @@ func (r *Remote) fetch(ctx context.Context, o *FetchOptions) (sto storer.Referen defer ioutil.CheckClose(s, &err) - ar, err := s.AdvertisedReferences() + ar, err := s.AdvertisedReferencesContext(ctx) if err != nil { return nil, err } @@ -1038,7 +1038,7 @@ func (r *Remote) List(o *ListOptions) (rfs []*plumbing.Reference, err error) { defer ioutil.CheckClose(s, &err) - ar, err := s.AdvertisedReferences() + ar, err := s.AdvertisedReferencesContext(context.TODO()) if err != nil { return nil, err } -- cgit