diff options
author | Stan Hu <stanhu@gmail.com> | 2021-07-26 16:22:34 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2021-07-26 16:22:34 -0700 |
commit | 4e81d534c2f2c87ebdfeafb1f8338b17ffdfc708 (patch) | |
tree | a8084b9c6e3baf279eed8b27999e6813b0407794 /client | |
parent | 0997266fc03b0851e4ef52d25dbe8b44bdba7de7 (diff) | |
download | gitlab-shell-4e81d534c2f2c87ebdfeafb1f8338b17ffdfc708.tar.gz |
Fix formatting via make fmt
Diffstat (limited to 'client')
-rw-r--r-- | client/gitlabnet.go | 6 | ||||
-rw-r--r-- | client/httpclient.go | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/client/gitlabnet.go b/client/gitlabnet.go index a262d93..f71c110 100644 --- a/client/gitlabnet.go +++ b/client/gitlabnet.go @@ -132,9 +132,9 @@ func (c *GitlabNetClient) DoRequest(ctx context.Context, method, path string, da start := time.Now() response, err := c.httpClient.Do(request) fields := log.Fields{ - "method": method, - "url": request.URL.String(), - "duration_ms": time.Since(start) / time.Millisecond, + "method": method, + "url": request.URL.String(), + "duration_ms": time.Since(start) / time.Millisecond, } logger := log.WithContextFields(ctx, fields) diff --git a/client/httpclient.go b/client/httpclient.go index bcf81dd..f2e82e5 100644 --- a/client/httpclient.go +++ b/client/httpclient.go @@ -13,8 +13,8 @@ import ( "time" "gitlab.com/gitlab-org/labkit/correlation" - "gitlab.com/gitlab-org/labkit/tracing" "gitlab.com/gitlab-org/labkit/log" + "gitlab.com/gitlab-org/labkit/tracing" ) const ( |