Rename variable to fix typo (#11395)

This commit is contained in:
Andrea Scarpino 2024-05-30 09:39:08 +00:00 committed by GitHub
parent 1d34930180
commit 57d96128b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -744,9 +744,9 @@ type Configuration struct {
// simultaneous connections. // simultaneous connections.
GlobalRateLimitMemcachedPoolSize int `json:"global-rate-limit-memcached-pool-size"` GlobalRateLimitMemcachedPoolSize int `json:"global-rate-limit-memcached-pool-size"`
// GlobalRateLimitStatucCode determines the HTTP status code to return // GlobalRateLimitStatusCode determines the HTTP status code to return
// when limit is exceeding during global rate limiting. // when limit is exceeding during global rate limiting.
GlobalRateLimitStatucCode int `json:"global-rate-limit-status-code"` GlobalRateLimitStatusCode int `json:"global-rate-limit-status-code"`
// DebugConnections Enables debugging log for selected client connections // DebugConnections Enables debugging log for selected client connections
// http://nginx.org/en/docs/ngx_core_module.html#debug_connection // http://nginx.org/en/docs/ngx_core_module.html#debug_connection
@ -927,7 +927,7 @@ func NewDefault() Configuration {
GlobalRateLimitMemcachedConnectTimeout: 50, GlobalRateLimitMemcachedConnectTimeout: 50,
GlobalRateLimitMemcachedMaxIdleTimeout: 10000, GlobalRateLimitMemcachedMaxIdleTimeout: 10000,
GlobalRateLimitMemcachedPoolSize: 50, GlobalRateLimitMemcachedPoolSize: 50,
GlobalRateLimitStatucCode: 429, GlobalRateLimitStatusCode: 429,
DebugConnections: []string{}, DebugConnections: []string{},
StrictValidatePathType: false, // TODO: This will be true in future releases StrictValidatePathType: false, // TODO: This will be true in future releases
GRPCBufferSizeKb: 0, GRPCBufferSizeKb: 0,

View file

@ -413,7 +413,7 @@ func configForLua(input interface{}) string {
all.Cfg.GlobalRateLimitMemcachedConnectTimeout, all.Cfg.GlobalRateLimitMemcachedConnectTimeout,
all.Cfg.GlobalRateLimitMemcachedMaxIdleTimeout, all.Cfg.GlobalRateLimitMemcachedMaxIdleTimeout,
all.Cfg.GlobalRateLimitMemcachedPoolSize, all.Cfg.GlobalRateLimitMemcachedPoolSize,
all.Cfg.GlobalRateLimitStatucCode, all.Cfg.GlobalRateLimitStatusCode,
) )
} }