fix: use registry from opts not use default directly:(#1436) (#1468)

web: use passed user registry, or default
This commit is contained in:
Edward
2020-04-05 18:15:38 +08:00
committed by GitHub
parent bc7579f1d8
commit 31a1ea6fae
3 changed files with 14 additions and 7 deletions

View File

@@ -268,7 +268,7 @@ func (s *service) stop() error {
func (s *service) Client() *http.Client {
rt := mhttp.NewRoundTripper(
mhttp.WithRegistry(registry.DefaultRegistry),
mhttp.WithRegistry(s.opts.Registry),
)
return &http.Client{
Transport: rt,