diff --git a/pkg/visor/rpc.go b/pkg/visor/rpc.go index 4dfa2bca6b..4700026fc1 100644 --- a/pkg/visor/rpc.go +++ b/pkg/visor/rpc.go @@ -535,10 +535,12 @@ func (r *RPC) SetMinHops(n *uint16, _ *struct{}) (err error) { } // GetPersistentTransports gets persistent_transports from visor's routing config -func (r *RPC) GetPersistentTransports(n *uint16, _ *struct{}) (pTs []transport.PersistentTransports, err error) { - defer rpcutil.LogCall(r.log, "GetPersistentTransports", *n) - pTs, err = r.visor.GetPersistentTransports() - return pTs, err +func (r *RPC) GetPersistentTransports(_ *struct{}, out *[]transport.PersistentTransports) (err error) { + defer rpcutil.LogCall(r.log, "GetPersistentTransports", nil)(out, &err) + + pTs, err := r.visor.GetPersistentTransports() + *out = pTs + return err } // SetPersistentTransports sets persistent_transports in visor's routing config