Skip to content

Commit

Permalink
Use probability parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-soltesz authored Jul 10, 2024
1 parent 2d354a7 commit 5986342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5986342

Please sign in to comment.