From 6ee995298b4000c929afd929c6a808fe903bfffd Mon Sep 17 00:00:00 2001 From: Jon Lundy Date: Tue, 28 Mar 2023 08:23:53 -0600 Subject: [PATCH] fix: update top results per peer --- app/peerfinder/http.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/peerfinder/http.go b/app/peerfinder/http.go index 3b56569..6dfca6c 100644 --- a/app/peerfinder/http.go +++ b/app/peerfinder/http.go @@ -656,6 +656,9 @@ func fnOrderByPeer(rq *Request) listPeer { v := peers[i] sort.Sort(v.Results) + + v.Name = v.Results[0].Name + v.Country = v.Results[0].Country v.Latency = v.Results[0].Latency v.Jitter = v.Results[0].Jitter