From 59863426a013d0e1efaadf1f55a8889633e5ea93 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Wed, 10 Jul 2024 16:33:29 -0400 Subject: [PATCH] Use probability parameter --- handler/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handler/handler.go b/handler/handler.go index 3200f4d..095695b 100644 --- a/handler/handler.go +++ b/handler/handler.go @@ -198,10 +198,10 @@ func (s *Server) Register(rw http.ResponseWriter, req *http.Request) { } param.Geo = record param.Network = s.ASN.AnnotateIP(param.IPv4) - r := register.CreateRegisterResponse(param) // Override site probability with user-provided parameter. // TODO(soltesz): include M-Lab override option - r.Registration.Heartbeat.Probability = getProbability(req) + param.Probability = getProbability(req) + r := register.CreateRegisterResponse(param) // Register the hostname under the organization zone. m := dnsx.NewManager(s.DNS, s.Project, register.OrgZone(param.Org, s.Project))