Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added MaxHedgedRequests field to support hedged requests #154

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading