Move member definition to get consistent formatting across Go versions.

This commit is contained in:
Joachim Bauch 2020-08-28 09:50:52 +02:00
parent 0dcb9f6b2d
commit 2d73b97882
Failed to extract signature

View file

@ -47,11 +47,11 @@ type BackendClient struct {
transport *http.Transport
version string
backends *BackendConfiguration
clients map[string]*HttpClientPool
mu sync.Mutex
maxConcurrentRequestsPerHost int
clients map[string]*HttpClientPool
}
func NewBackendClient(config *goconf.ConfigFile, maxConcurrentRequestsPerHost int, version string) (*BackendClient, error) {
@ -77,9 +77,9 @@ func NewBackendClient(config *goconf.ConfigFile, maxConcurrentRequestsPerHost in
transport: transport,
version: version,
backends: backends,
clients: make(map[string]*HttpClientPool),
maxConcurrentRequestsPerHost: maxConcurrentRequestsPerHost,
clients: make(map[string]*HttpClientPool),
}, nil
}