Trace the correct error return value in Router.DialWindowsDesktop (#56559)

This commit is contained in:
Edoardo Spadolini
2025-07-08 16:17:35 +00:00
committed by GitHub
parent ed5c1208bf
commit 260b7cb9e2
+1 -2
View File
@@ -338,8 +338,7 @@ func (r *Router) DialWindowsDesktop(ctx context.Context, clientSrcAddr, clientDs
attribute.String("cluster", clusterName),
),
)
defer tracing.EndSpan(span, err)
defer func() { tracing.EndSpan(span, err) }()
site := r.localSite
if clusterName != r.clusterName {