mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
Merge pull request #1240 from ScorpioCPH/remove-http-timeout-on-getting-catalog
Remove http timeout option on getting catalog
This commit is contained in:
commit
2585b5d4e7
@ -20,7 +20,7 @@ import (
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
"time"
|
||||
// "time"
|
||||
|
||||
"github.com/vmware/harbor/src/common/utils"
|
||||
registry_error "github.com/vmware/harbor/src/common/utils/registry/error"
|
||||
@ -77,7 +77,9 @@ func NewRegistryWithModifiers(endpoint string, insecure bool, modifiers ...Modif
|
||||
|
||||
return NewRegistry(endpoint, &http.Client{
|
||||
Transport: transport,
|
||||
Timeout: 30 * time.Second,
|
||||
// If there are hunderds of repositories in docker registry,
|
||||
// timeout option will abort HTTP request on getting catalog
|
||||
// Timeout: 30 * time.Second,
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user