refactor(server/v2): add missing comet flags (#21123)

This commit is contained in:
Julien Robert
2024-07-31 15:58:50 +00:00
committed by GitHub
parent 453c86ebf1
commit 98e09a720d
15 changed files with 70 additions and 50 deletions
+3 -1
View File
@@ -21,6 +21,8 @@ import (
var _ serverv2.ServerComponent[transaction.Tx] = (*GRPCGatewayServer[transaction.Tx])(nil)
const (
ServerName = "grpc-gateway"
// GRPCBlockHeightHeader is the gRPC header for block height.
GRPCBlockHeightHeader = "x-cosmos-block-height"
)
@@ -64,7 +66,7 @@ func New[T transaction.Tx](grpcSrv *grpc.Server, ir jsonpb.AnyResolver, cfgOptio
}
func (g *GRPCGatewayServer[T]) Name() string {
return "grpc-gateway"
return ServerName
}
func (s *GRPCGatewayServer[T]) Config() any {