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:
1 parent
4b526538af
commit
40ba275759
18 files changed
+208
-150
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user