From 98b94e8677a3c7ef82d70cd8b6e0c5c53c98565b Mon Sep 17 00:00:00 2001 From: Mohammed Date: Mon, 31 Jul 2023 17:32:42 +0330 Subject: [PATCH] remove autotransport logic from ping command --- pkg/router/router.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/router/router.go b/pkg/router/router.go index 2df5d83c3..c18f28b22 100644 --- a/pkg/router/router.go +++ b/pkg/router/router.go @@ -328,16 +328,6 @@ func (r *router) PingRoute( lPK := r.conf.PubKey forwardDesc := routing.NewRouteDescriptor(lPK, lPK, lPort, rPort) - r.routeSetupHookMu.Lock() - defer r.routeSetupHookMu.Unlock() - if len(r.routeSetupHooks) != 0 { - for _, rsf := range r.routeSetupHooks { - if err := rsf(rPK, r.tm); err != nil { - return nil, err - } - } - } - // check if transports are available ok := r.checkIfTransportAvailable() if !ok {