@@ -51,7 +51,7 @@ func createEventbusCommand() *cobra.Command {
5151 cmdFailedf (cmd , "the --name flag MUST be set" )
5252 }
5353 ctx := context .Background ()
54- grpcConn := mustGatewayProxyGRPCConn (ctx , cmd )
54+ grpcConn := mustGetControllerProxyConn (ctx , cmd )
5555 defer func () {
5656 _ = grpcConn .Close ()
5757 }()
@@ -92,7 +92,7 @@ func deleteEventbusCommand() *cobra.Command {
9292 cmdFailedf (cmd , "the --name flag MUST be set" )
9393 }
9494 ctx := context .Background ()
95- grpcConn := mustGatewayProxyGRPCConn (ctx , cmd )
95+ grpcConn := mustGetControllerProxyConn (ctx , cmd )
9696 defer func () {
9797 _ = grpcConn .Close ()
9898 }()
@@ -137,7 +137,7 @@ func getEventbusInfoCommand() *cobra.Command {
137137 buses = strings .Split (eventbus , "," )
138138 }
139139 ctx := context .Background ()
140- grpcConn := mustGatewayProxyGRPCConn (ctx , cmd )
140+ grpcConn := mustGetControllerProxyConn (ctx , cmd )
141141 defer func () {
142142 _ = grpcConn .Close ()
143143 }()
@@ -306,7 +306,7 @@ func listEventbusInfoCommand() *cobra.Command {
306306 Short : "list the eventbus" ,
307307 Run : func (cmd * cobra.Command , args []string ) {
308308 ctx := context .Background ()
309- grpcConn := mustGatewayProxyGRPCConn (ctx , cmd )
309+ grpcConn := mustGetControllerProxyConn (ctx , cmd )
310310 defer func () {
311311 _ = grpcConn .Close ()
312312 }()
0 commit comments