Commit 18fb640
authored
refactor(manager/scheduler): optimize IP formatting error handling (#4201)
- Optimized error handling when IP formatting fails in the manager and scheduler modules
- Replaced errors.New with fmt.Errorf to improve readability of error messages
- Extracted IP address string into a separate variable to enhance code maintainability
Signed-off-by: jinronga <1460595002@qq.com>
Update manager.go
Update scheduler.go
Update manager.go
refactor(scheduler): 更新 GRPC 监听器的 IP 配置
- 将 GRPC监听 IP 改为全局监听 IP
- 优化了 IP格式化错误的错误消息1 parent 986fced commit 18fb640
2 files changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
318 | 317 | | |
319 | 318 | | |
320 | 319 | | |
321 | | - | |
| 320 | + | |
322 | 321 | | |
323 | 322 | | |
324 | 323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
269 | 268 | | |
270 | 269 | | |
271 | 270 | | |
272 | | - | |
| 271 | + | |
273 | 272 | | |
274 | 273 | | |
275 | 274 | | |
| |||
0 commit comments