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:
Bo-Yi Wu
2017-10-18 20:24:47 -05:00
committed by GitHub
parent 50237f4fd1
commit 6d29e638b4
10 changed files with 15 additions and 15 deletions

View File

@@ -188,7 +188,7 @@ func BuildDefaultPushConf() ConfYaml {
// gRPC Server
conf.GRPC.Enabled = false
conf.GRPC.Port = "50051"
conf.GRPC.Port = "9000"
return conf
}

View File

@@ -22,7 +22,7 @@ core:
grpc:
enabled: false # enabale gRPC server
port: 50051
port: 9000
api:
push_uri: "/api/push"

View File

@@ -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) {