File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed
internal/mode/static/nginx/runtime Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ import (
19
19
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
20
20
21
21
const (
22
- // PidFile specifies the location of the PID file for the Nginx process
22
+ // PidFile specifies the location of the PID file for the Nginx process.
23
23
PidFile = "/var/run/nginx/nginx.pid"
24
- // PidFileTimeout defines the timeout duration for accessing the PID file
24
+ // PidFileTimeout defines the timeout duration for accessing the PID file.
25
25
PidFileTimeout = 10000 * time .Millisecond
26
- // NginxReloadTimeout sets the timeout duration for reloading the Nginx configuration
26
+ // NginxReloadTimeout sets the timeout duration for reloading the Nginx configuration.
27
27
NginxReloadTimeout = 60000 * time .Millisecond
28
28
)
29
29
@@ -239,7 +239,7 @@ func (p *ProcessHandlerImpl) FindMainProcess(
239
239
}
240
240
241
241
func (p * ProcessHandlerImpl ) ReadFile (file string ) ([]byte , error ) {
242
- return p .ReadFile (file )
242
+ return p .readFile (file )
243
243
}
244
244
245
245
func (p * ProcessHandlerImpl ) Kill (pid int ) error {
Original file line number Diff line number Diff line change @@ -164,18 +164,16 @@ var _ = Describe("NGINX Runtime Manager", func() {
164
164
Peers : []ngxclient.Peer {
165
165
{ID : 1 , Name : "peer1-name" },
166
166
},
167
- Queue : ngxclient.Queue {Size : 10 },
168
- Keepalives : 5 ,
169
- Zombies : 2 ,
167
+ Queue : ngxclient.Queue {Size : 10 },
168
+ Zombies : 2 ,
170
169
},
171
170
"upstream2" : {
172
171
Zone : "zone2" ,
173
172
Peers : []ngxclient.Peer {
174
173
{ID : 2 , Name : "peer2-name" },
175
174
},
176
- Queue : ngxclient.Queue {Size : 20 },
177
- Keepalives : 3 ,
178
- Zombies : 1 ,
175
+ Queue : ngxclient.Queue {Size : 20 },
176
+ Zombies : 1 ,
179
177
},
180
178
}
181
179
@@ -184,7 +182,7 @@ var _ = Describe("NGINX Runtime Manager", func() {
184
182
upstreams , err := manager .GetUpstreams ()
185
183
186
184
Expect (err ).NotTo (HaveOccurred ())
187
- Expect (upstreams ).To (Equal (expUpstreams ))
185
+ Expect (expUpstreams ).To (Equal (upstreams ))
188
186
})
189
187
190
188
It ("returns an error when GetUpstreams fails" , func () {
You can’t perform that action at this time.
0 commit comments