Skip to content

Commit

Permalink
reorder some parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmray committed Sep 18, 2024
1 parent e5ca940 commit 3f63052
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions infra/conf/transport_internet.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ type SplitHTTPConfig struct {
}

type Xmux struct {
MaxConnections *Int32Range `json:"maxConnections"`
MaxConcurrency *Int32Range `json:"maxConcurrency"`
MaxConnections *Int32Range `json:"maxConnections"`
CMaxReuseTimes *Int32Range `json:"cMaxReuseTimes"`
CMaxLifetimeMs *Int32Range `json:"cMaxLifetimeMs"`
}
Expand Down Expand Up @@ -269,8 +269,8 @@ func (c *SplitHTTPConfig) Build() (proto.Message, error) {

// Multiplexing config
muxProtobuf := splithttp.Multiplexing{
MaxConnections: splithttpNewRandRangeConfig(c.Xmux.MaxConnections),
MaxConcurrency: splithttpNewRandRangeConfig(c.Xmux.MaxConcurrency),
MaxConnections: splithttpNewRandRangeConfig(c.Xmux.MaxConnections),
CMaxReuseTimes: splithttpNewRandRangeConfig(c.Xmux.CMaxReuseTimes),
CMaxLifetimeMs: splithttpNewRandRangeConfig(c.Xmux.CMaxLifetimeMs),
}
Expand Down
24 changes: 12 additions & 12 deletions transport/internet/splithttp/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion transport/internet/splithttp/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ message RandRangeConfig {
}

message Multiplexing {
RandRangeConfig maxConnections = 1;
RandRangeConfig maxConcurrency = 2;
RandRangeConfig maxConnections = 1;
RandRangeConfig cMaxReuseTimes = 3;
RandRangeConfig cMaxLifetimeMs = 4;
}

0 comments on commit 3f63052

Please sign in to comment.