Skip to content

Commit

Permalink
remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
ddowker committed May 23, 2024
1 parent 5bbcbae commit e35b84b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions broker/fragment/store_gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,11 @@ func (s *gcsBackend) SignGet(ep *url.URL, fragment pb.Fragment, d time.Duration)
u.Scheme = "https"
u.Host = "storage.googleapis.com"

log.Info("*** DJD signed urls disabled ***")
return u.String(), nil
} else {
opts.Method = "GET"
opts.Expires = time.Now().Add(d)

log.Info("*** DJD signed urls enabled ***")
return client.Bucket(cfg.bucket).SignedURL(cfg.rewritePath(cfg.prefix, fragment.ContentPath()), &opts)
}
}
Expand Down
2 changes: 0 additions & 2 deletions cmd/gazette/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ func (cmdServe) Execute(args []string) error {
broker.MaxAppendRate = int64(Config.Broker.MaxAppendRate)
pb.MaxReplication = int32(Config.Broker.MaxReplication)
fragment.DisableStores = Config.Broker.DisableStores

log.WithFields(log.Fields{"DisableSignedUrls": Config.Broker.DisableSignedUrls}).Info("*** DJD ***")
fragment.DisableSignedUrls = Config.Broker.DisableSignedUrls

var (
Expand Down

0 comments on commit e35b84b

Please sign in to comment.