Skip to content

Commit

Permalink
Rename GetTimeoutOptions to GetTimeoutOpts for consistent naming with…
Browse files Browse the repository at this point in the history
… other GetOptions funcs
  • Loading branch information
Kyle Hodgetts committed Sep 29, 2021
1 parent 06bd338 commit 1123422
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generators/ambassador/ambassador.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (a *AbstractGenerator) Generate(opts *options.Options, spec *openapi3.T) (s
}

// take global timeout options
timeoutOpts := opts.GetTimeoutOptions(path, method)
timeoutOpts := opts.GetTimeoutOpts(path, method)

// if final timeout options are not empty, include them
if !reflect.DeepEqual(options.TimeoutOptions{}, timeoutOpts) {
Expand Down
2 changes: 1 addition & 1 deletion generators/nginx_ingress/nginx_ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (g *Generator) Generate(opts *options.Options, spec *openapi3.T) (string, e

corsOpts := opts.GetCORSOpts(path, "")
rateLimitOpts := opts.GetRateLimitOpts(path, "")
timeoutOpts := opts.GetTimeoutOptions(path, "")
timeoutOpts := opts.GetTimeoutOpts(path, "")

// Get initial set of annotation based on current options
// will be modified next based on current path
Expand Down
2 changes: 1 addition & 1 deletion options/timeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type TimeoutOptions struct {
IdleTimeout uint32 `yaml:"idle_timeout,omitempty" json:"idle_timeout,omitempty"`
}

func (o *Options) GetTimeoutOptions(path, method string) TimeoutOptions {
func (o *Options) GetTimeoutOpts(path, method string) TimeoutOptions {
// take global timeout options
timeoutOpts := o.Timeouts

Expand Down

0 comments on commit 1123422

Please sign in to comment.