Skip to content

Commit

Permalink
log where SignGet() are called
Browse files Browse the repository at this point in the history
  • Loading branch information
ddowker committed May 22, 2024
1 parent 9951257 commit 6bc48f3
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions broker/fragment/store_gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,18 @@ func (s *gcsBackend) Provider() string {
}

func (s *gcsBackend) SignGet(ep *url.URL, fragment pb.Fragment, d time.Duration) (string, error) {
cfg, client, opts, err := s.gcsClient(ep)
if err != nil {
return "", err
}
opts.Method = "GET"
opts.Expires = time.Now().Add(d)
log.Fatal("*** DJD SignGet() called")
return "", nil
/*
cfg, client, opts, err := s.gcsClient(ep)
if err != nil {
return "", err
}
opts.Method = "GET"
opts.Expires = time.Now().Add(d)
return client.Bucket(cfg.bucket).SignedURL(cfg.rewritePath(cfg.prefix, fragment.ContentPath()), &opts)
return client.Bucket(cfg.bucket).SignedURL(cfg.rewritePath(cfg.prefix, fragment.ContentPath()), &opts)
*/
}

func (s *gcsBackend) Exists(ctx context.Context, ep *url.URL, fragment pb.Fragment) (exists bool, err error) {
Expand Down

0 comments on commit 6bc48f3

Please sign in to comment.