Skip to content

Commit d0cfefc

Browse files
committed
update
1 parent 7d1a394 commit d0cfefc

File tree

5 files changed

+2
-7
lines changed

5 files changed

+2
-7
lines changed

deploy/yaml/controller.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ data:
2121
name: ${POD_NAME}
2222
ip: ${POD_IP}
2323
port: 2048
24-
gateway_endpoint: http://192.168.49.2:30001
2524
etcd:
2625
- vanus-controller-0.vanus-controller.vanus.svc:2379
2726
- vanus-controller-1.vanus-controller.vanus.svc:2379

internal/controller/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ type Config struct {
3434
EtcdConfig embedetcd.Config `yaml:"embed_etcd"`
3535
Topology map[string]string `yaml:"topology"`
3636
Replicas uint `yaml:"replicas"`
37-
GatewayEndpoint string `yaml:"gateway_endpoint"`
3837
}
3938

4039
func (c *Config) GetEtcdConfig() embedetcd.Config {
@@ -51,7 +50,6 @@ func (c *Config) GetEventbusCtrlConfig() eventbus.Config {
5150
KVKeyPrefix: c.MetadataConfig.KeyPrefix,
5251
Replicas: c.Replicas,
5352
Topology: c.Topology,
54-
GatewayEndpoint: c.GatewayEndpoint,
5553
}
5654
}
5755

internal/controller/eventbus/config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ type Config struct {
2424
EtcdConfig embedetcd.Config `yaml:"etcd"`
2525
Replicas uint `yaml:"replicas"`
2626
Topology map[string]string `yaml:"topology"`
27-
GatewayEndpoint string `yaml:"gateway_endpoint"`
2827
}

internal/controller/eventbus/controller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,7 @@ func (ctrl *controller) ReportSegmentBlockIsFull(ctx context.Context,
424424

425425
func (ctrl *controller) Ping(_ context.Context, _ *emptypb.Empty) (*ctrlpb.PingResponse, error) {
426426
return &ctrlpb.PingResponse{
427-
LeaderAddr: ctrl.member.GetLeaderAddr(),
428-
GatewayAddr: ctrl.cfg.GatewayEndpoint,
427+
LeaderAddr: ctrl.member.GetLeaderAddr(),
429428
}, nil
430429
}
431430

internal/gateway/grpc_proxy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
"google.golang.org/grpc"
3434
)
3535

36-
func Test_A(t *testing.T) {
36+
func Test_ControllerProxy(t *testing.T) {
3737
Convey("test grpc reverse proxy", t, func() {
3838
listen1, err := net.Listen("tcp", fmt.Sprintf(":%d", 20001))
3939
So(err, ShouldBeNil)

0 commit comments

Comments
 (0)