Skip to content

Commit

Permalink
Refactor small code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bjee19 committed Dec 11, 2024
1 parent db05606 commit dd3f170
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions internal/mode/static/nginx/config/upstreams.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,10 @@ func (g GeneratorImpl) createUpstream(
}

return http.Upstream{
Name: up.Name,
ZoneSize: zoneSize,
Servers: upstreamServers,
KeepAlive: http.UpstreamKeepAlive{
Connections: upstreamPolicySettings.KeepAlive.Connections,
Requests: upstreamPolicySettings.KeepAlive.Requests,
Time: upstreamPolicySettings.KeepAlive.Time,
Timeout: upstreamPolicySettings.KeepAlive.Timeout,
},
Name: up.Name,
ZoneSize: zoneSize,
Servers: upstreamServers,
KeepAlive: upstreamPolicySettings.KeepAlive,
}
}

Expand Down

0 comments on commit dd3f170

Please sign in to comment.