From d5ec3aba77624387711ffa90e6960e406e9790e6 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Sat, 22 Apr 2023 01:27:59 -0400 Subject: [Refactor] Move components into separate packages A long-overdue change to split certain packages once smashed into the RPM package into their own package. The resulting code should make it easier for people to navigate the source code. In the process, fixed a bug where a self probe being started on a load-generating connection races with the establishment of the load-generating connection and causes a panic because the self probe is not establishing a connection on an already established connection. --- stabilizer/rev3.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stabilizer/rev3.go') diff --git a/stabilizer/rev3.go b/stabilizer/rev3.go index 4ab0bd9..5d1aeec 100644 --- a/stabilizer/rev3.go +++ b/stabilizer/rev3.go @@ -6,6 +6,7 @@ import ( "github.com/network-quality/goresponsiveness/debug" "github.com/network-quality/goresponsiveness/ms" + "github.com/network-quality/goresponsiveness/probe" "github.com/network-quality/goresponsiveness/rpm" "github.com/network-quality/goresponsiveness/utilities" ) @@ -55,7 +56,7 @@ func NewProbeStabilizer( dbgLevel: debugLevel} } -func (r3 *ProbeStabilizer) AddMeasurement(measurement rpm.ProbeDataPoint) { +func (r3 *ProbeStabilizer) AddMeasurement(measurement probe.ProbeDataPoint) { r3.m.Lock() defer r3.m.Unlock() -- cgit v1.2.3