Add grpc multi conn

This commit is contained in:
风扇滑翔翼 2024-12-19 10:45:35 +00:00 committed by GitHub
parent ae62a0fb52
commit a7e12176fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 85 additions and 11 deletions

View file

@ -14,6 +14,7 @@ type GRPCConfig struct {
PermitWithoutStream bool `json:"permit_without_stream"`
InitialWindowsSize int32 `json:"initial_windows_size"`
UserAgent string `json:"user_agent"`
MultiConnections int32 `json:"multi_connections"`
}
func (g *GRPCConfig) Build() (proto.Message, error) {
@ -37,5 +38,6 @@ func (g *GRPCConfig) Build() (proto.Message, error) {
PermitWithoutStream: g.PermitWithoutStream,
InitialWindowsSize: g.InitialWindowsSize,
UserAgent: g.UserAgent,
MultiConnections: g.MultiConnections,
}, nil
}