Skip to content

Commit

Permalink
Added MaxHedgedRequests field to support hedged requests
Browse files Browse the repository at this point in the history
Signed-off-by: milinddethe15 <[email protected]>
  • Loading branch information
milinddethe15 committed Nov 6, 2024
1 parent b598dce commit b790aa9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions exthttp/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type HTTPConfig struct {

TLSConfig TLSConfig `yaml:"tls_config"`
DisableCompression bool `yaml:"disable_compression"`
MaxHedgedRequests uint `yaml:"max_hedged_requests"`
}

// DefaultTransport - this default transport is based on the Minio
Expand Down
1 change: 1 addition & 0 deletions providers/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ type HTTPConfig struct {
DisableCompression bool `yaml:"disable_compression"`
ClientTimeout time.Duration `yaml:"client_timeout"`
Transport http.RoundTripper `yaml:"-"`
MaxHedgedRequests uint `yaml:"max_hedged_requests"`
}

// Config stores the configuration for oci bucket.
Expand Down
9 changes: 5 additions & 4 deletions providers/oss/oss.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ const PartSize = 1024 * 1024 * 128

// Config stores the configuration for oss bucket.
type Config struct {
Endpoint string `yaml:"endpoint"`
Bucket string `yaml:"bucket"`
AccessKeyID string `yaml:"access_key_id"`
AccessKeySecret string `yaml:"access_key_secret"`
Endpoint string `yaml:"endpoint"`
Bucket string `yaml:"bucket"`
AccessKeyID string `yaml:"access_key_id"`
AccessKeySecret string `yaml:"access_key_secret"`
MaxHedgedRequests uint `yaml:"max_hedged_requests"`
}

// Bucket implements the store.Bucket interface.
Expand Down

0 comments on commit b790aa9

Please sign in to comment.