Skip to content

Commit 5ea2a7e

Browse files
committed
Remove invalidBackendZoneSize
1 parent be25472 commit 5ea2a7e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

internal/mode/static/nginx/config/upstreams.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ const (
2121
ossZoneSize = "512k"
2222
// plusZoneSize is the upstream zone size for nginx plus.
2323
plusZoneSize = "1m"
24-
// invalidBackendZoneSize is the upstream zone size for the invalid backend upstream.
25-
invalidBackendZoneSize = ""
2624
)
2725

2826
func (g GeneratorImpl) executeUpstreams(conf dataplane.Configuration) []executeResult {
@@ -82,8 +80,7 @@ func (g GeneratorImpl) createUpstream(up dataplane.Upstream) http.Upstream {
8280

8381
func createInvalidBackendRefUpstream() http.Upstream {
8482
return http.Upstream{
85-
Name: invalidBackendRef,
86-
ZoneSize: invalidBackendZoneSize,
83+
Name: invalidBackendRef,
8784
Servers: []http.UpstreamServer{
8885
{
8986
Address: nginx500Server,

internal/mode/static/nginx/config/upstreams_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ func TestCreateUpstreams(t *testing.T) {
128128
},
129129
},
130130
{
131-
Name: invalidBackendRef,
132-
ZoneSize: invalidBackendZoneSize,
131+
Name: invalidBackendRef,
133132
Servers: []http.UpstreamServer{
134133
{
135134
Address: nginx500Server,

0 commit comments

Comments
 (0)