updated cmd

This commit is contained in:
marvzhang
2021-07-10 22:22:02 +08:00
parent 5b2aff713e
commit 553fbbc1f8
3 changed files with 6 additions and 4 deletions

View File

@@ -44,7 +44,8 @@ which runs api and assign tasks to worker nodes`,
fmt.Println(fmt.Sprintf("invalid grpc-address: %s", masterGrpcAddress))
}
opts = append(opts, apps.WithMasterGrpcAddress(address))
viper.Set("grpc.client.address", masterGrpcAddress)
viper.Set("grpc.address", masterGrpcAddress)
viper.Set("grpc.server.address", masterGrpcAddress)
}
// app

View File

@@ -44,7 +44,7 @@ assigned by the master node`,
return
}
opts = append(opts, apps.WithWorkerGrpcAddress(address))
viper.Set("grpc.client.address", workerGrpcAddress)
viper.Set("grpc.address", workerGrpcAddress)
}
// app

View File

@@ -65,6 +65,7 @@ notification:
config:
path: ''
grpc:
client:
address: localhost:9666
address: localhost:9666
server:
address: 0.0.0.0:9666
authKey: Crawlab2021!