change grpc port to 9000 (#291)
* change grpc port to 9000 Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * change grpc port to 9000 Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
@@ -188,7 +188,7 @@ func BuildDefaultPushConf() ConfYaml {
|
||||
|
||||
// gRPC Server
|
||||
conf.GRPC.Enabled = false
|
||||
conf.GRPC.Port = "50051"
|
||||
conf.GRPC.Port = "9000"
|
||||
return conf
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ core:
|
||||
|
||||
grpc:
|
||||
enabled: false # enabale gRPC server
|
||||
port: 50051
|
||||
port: 9000
|
||||
|
||||
api:
|
||||
push_uri: "/api/push"
|
||||
|
||||
@@ -119,7 +119,7 @@ func (suite *ConfigTestSuite) TestValidateConfDefault() {
|
||||
|
||||
// gRPC
|
||||
assert.Equal(suite.T(), false, suite.ConfGorushDefault.GRPC.Enabled)
|
||||
assert.Equal(suite.T(), "50051", suite.ConfGorushDefault.GRPC.Port)
|
||||
assert.Equal(suite.T(), "9000", suite.ConfGorushDefault.GRPC.Port)
|
||||
}
|
||||
|
||||
func (suite *ConfigTestSuite) TestValidateConf() {
|
||||
@@ -184,7 +184,7 @@ func (suite *ConfigTestSuite) TestValidateConf() {
|
||||
|
||||
// gRPC
|
||||
assert.Equal(suite.T(), false, suite.ConfGorush.GRPC.Enabled)
|
||||
assert.Equal(suite.T(), "50051", suite.ConfGorush.GRPC.Port)
|
||||
assert.Equal(suite.T(), "9000", suite.ConfGorush.GRPC.Port)
|
||||
}
|
||||
|
||||
func TestConfigTestSuite(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user