feat(worker): add 'initial_upstreams' field to worker config to prepare to replace 'controllers' field. Update worker config description on website.

This commit is contained in:
Haotian authored and Haotian Zeng committed 2022-06-13 15:45:03 -07:00
1 parent 4b526538af
commit 40ba275759
18 files changed
+208 -150

No files matched your search

+1 -1
View File
@@ -483,7 +483,7 @@ func (c *Command) Run(args []string) int {
if c.flagControllerClusterListenAddr != "" {
l.Address = c.flagControllerClusterListenAddr
if !c.flagControllerOnly {
c.Config.Worker.Controllers = []string{l.Address}
c.Config.Worker.InitialUpstreams = []string{l.Address}
}
} else {
l.Address = "127.0.0.1:9201"