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

remove(backend): remove redundant ErrorThreshold field #461

Merged
merged 1 commit into from
Aug 4, 2023
Merged
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
5 changes: 0 additions & 5 deletions fastly/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ type Backend struct {
ConnectTimeout int `mapstructure:"connect_timeout"`
CreatedAt *time.Time `mapstructure:"created_at"`
DeletedAt *time.Time `mapstructure:"deleted_at"`
ErrorThreshold int `mapstructure:"error_threshold"`
FirstByteTimeout int `mapstructure:"first_byte_timeout"`
HealthCheck string `mapstructure:"healthcheck"`
Hostname string `mapstructure:"hostname"`
Expand Down Expand Up @@ -104,8 +103,6 @@ type CreateBackendInput struct {
Comment *string `url:"comment,omitempty"`
// ConnectTimeout is the maximum duration in milliseconds to wait for a connection to this backend to be established.
ConnectTimeout *int `url:"connect_timeout,omitempty"`
// ErrorThreshold is the number of errors to allow before the Backend is marked as down.
ErrorThreshold *int `url:"error_threshold,omitempty"`
// FirstByteTimeout is how long to wait for the first bytes in milliseconds.
FirstByteTimeout *int `url:"first_byte_timeout,omitempty"`
// HealthCheck is the name of the healthcheck to use with this backend.
Expand Down Expand Up @@ -226,8 +223,6 @@ type UpdateBackendInput struct {
Comment *string `url:"comment,omitempty"`
// ConnectTimeout is the maximum duration in milliseconds to wait for a connection to this backend to be established.
ConnectTimeout *int `url:"connect_timeout,omitempty"`
// ErrorThreshold is the number of errors to allow before the Backend is marked as down.
ErrorThreshold *int `url:"error_threshold,omitempty"`
// FirstByteTimeout is how long to wait for the first bytes in milliseconds.
FirstByteTimeout *int `url:"first_byte_timeout,omitempty"`
// HealthCheck is the name of the healthcheck to use with this backend.
Expand Down