Skip to content

Commit

Permalink
style: format code with Go fmt and Gofumpt
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in efb379c according to the output
from Go fmt and Gofumpt.

Details: #1
  • Loading branch information
deepsource-autofix[bot] committed Feb 19, 2024
1 parent efb379c commit ea5950b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lura/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
)

func middlewareProxy(next proxy.Proxy, tracer trace.Tracer, urlPattern string, duration metric.Float64Histogram,
tAttrs []attribute.KeyValue, mAttrs metric.MeasurementOption) func(ctx context.Context, req *proxy.Request) (*proxy.Response, error) {

tAttrs []attribute.KeyValue, mAttrs metric.MeasurementOption,
) func(ctx context.Context, req *proxy.Request) (*proxy.Response, error) {
return func(ctx context.Context, req *proxy.Request) (*proxy.Response, error) {
var span trace.Span
if tracer != nil {
Expand Down Expand Up @@ -70,7 +70,6 @@ func middlewareProxy(next proxy.Proxy, tracer trace.Tracer, urlPattern string, d
func Middleware(gsf state.GetterFn, metricsEnabled bool, tracesEnabled bool,
stageName string, urlPattern string, staticAttrs []attribute.KeyValue,
) proxy.Middleware {

mAttrs := make([]attribute.KeyValue, 0, len(staticAttrs)+1)
tAttrs := make([]attribute.KeyValue, 0, len(staticAttrs)+1)

Expand Down

0 comments on commit ea5950b

Please sign in to comment.