File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
internal/mode/static/nginx/config Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ const (
21
21
ossZoneSize = "512k"
22
22
// plusZoneSize is the upstream zone size for nginx plus.
23
23
plusZoneSize = "1m"
24
- // invalidBackendZoneSize is the upstream zone size for the invalid backend upstream.
25
- invalidBackendZoneSize = ""
26
24
)
27
25
28
26
func (g GeneratorImpl ) executeUpstreams (conf dataplane.Configuration ) []executeResult {
@@ -82,8 +80,7 @@ func (g GeneratorImpl) createUpstream(up dataplane.Upstream) http.Upstream {
82
80
83
81
func createInvalidBackendRefUpstream () http.Upstream {
84
82
return http.Upstream {
85
- Name : invalidBackendRef ,
86
- ZoneSize : invalidBackendZoneSize ,
83
+ Name : invalidBackendRef ,
87
84
Servers : []http.UpstreamServer {
88
85
{
89
86
Address : nginx500Server ,
Original file line number Diff line number Diff line change @@ -128,8 +128,7 @@ func TestCreateUpstreams(t *testing.T) {
128
128
},
129
129
},
130
130
{
131
- Name : invalidBackendRef ,
132
- ZoneSize : invalidBackendZoneSize ,
131
+ Name : invalidBackendRef ,
133
132
Servers : []http.UpstreamServer {
134
133
{
135
134
Address : nginx500Server ,
You can’t perform that action at this time.
0 commit comments