mirror of
https://github.com/minio/minio.git
synced 2025-12-08 16:53:11 -05:00
Use custom transport for remote targets (#12080)
This commit is contained in:
committed by
GitHub
parent
7a0a5bdc0d
commit
c9bf6007b4
@@ -363,7 +363,7 @@ func (sys *BucketTargetSys) getRemoteTargetClient(tcfg *madmin.BucketTarget) (*T
|
||||
creds := credentials.NewStaticV4(config.AccessKey, config.SecretKey, "")
|
||||
|
||||
getRemoteTargetInstanceTransportOnce.Do(func() {
|
||||
getRemoteTargetInstanceTransport = newGatewayHTTPTransport(10 * time.Minute)
|
||||
getRemoteTargetInstanceTransport = NewRemoteTargetHTTPTransport()
|
||||
})
|
||||
api, err := minio.New(tcfg.Endpoint, &miniogo.Options{
|
||||
Creds: creds,
|
||||
|
||||
Reference in New Issue
Block a user