Skip to content

Commit ea5950b

Browse files
style: format code with Go fmt and Gofumpt
This commit fixes the style issues introduced in efb379c according to the output from Go fmt and Gofumpt. Details: #1
1 parent efb379c commit ea5950b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lura/proxy.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
)
1919

2020
func middlewareProxy(next proxy.Proxy, tracer trace.Tracer, urlPattern string, duration metric.Float64Histogram,
21-
tAttrs []attribute.KeyValue, mAttrs metric.MeasurementOption) func(ctx context.Context, req *proxy.Request) (*proxy.Response, error) {
22-
21+
tAttrs []attribute.KeyValue, mAttrs metric.MeasurementOption,
22+
) func(ctx context.Context, req *proxy.Request) (*proxy.Response, error) {
2323
return func(ctx context.Context, req *proxy.Request) (*proxy.Response, error) {
2424
var span trace.Span
2525
if tracer != nil {
@@ -70,7 +70,6 @@ func middlewareProxy(next proxy.Proxy, tracer trace.Tracer, urlPattern string, d
7070
func Middleware(gsf state.GetterFn, metricsEnabled bool, tracesEnabled bool,
7171
stageName string, urlPattern string, staticAttrs []attribute.KeyValue,
7272
) proxy.Middleware {
73-
7473
mAttrs := make([]attribute.KeyValue, 0, len(staticAttrs)+1)
7574
tAttrs := make([]attribute.KeyValue, 0, len(staticAttrs)+1)
7675

0 commit comments

Comments
 (0)