From c59943a12da4845ccaf7b93ec4b293b19dedea76 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Fri, 14 Jul 2023 11:06:08 -0400 Subject: Probe direction is unnused in probe.Probe -- remove it Signed-off-by: Will Hawkins --- rpm/rpm.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'rpm') diff --git a/rpm/rpm.go b/rpm/rpm.go index 6e14418..95e6192 100644 --- a/rpm/rpm.go +++ b/rpm/rpm.go @@ -190,7 +190,6 @@ func ResponsivenessProber[BucketType utilities.Number]( foreignProbeClient, foreignProbeConfiguration.URL, foreignProbeConfiguration.Host, - probeDirection, probe.Foreign, probeCount, captureExtendedStats, @@ -210,7 +209,7 @@ func ResponsivenessProber[BucketType utilities.Number]( fmt.Printf( "(%s) Failed to get a random %s load-generating connection on which to send a probe: %v.\n", debugging.Prefix, - utilities.Conditional(probeDirection == lgc.LGC_DOWN, "download", "upload"), + probeDirection, err, ) } @@ -229,7 +228,7 @@ func ResponsivenessProber[BucketType utilities.Number]( fmt.Printf( "(%s) The selected random %s load-generating connection on which to send a probe was not running.\n", debugging.Prefix, - utilities.Conditional(probeDirection == lgc.LGC_DOWN, "download", "upload"), + probeDirection, ) } return @@ -239,7 +238,7 @@ func ResponsivenessProber[BucketType utilities.Number]( fmt.Printf( "(%s) Selected %s load-generating connection with ID %d to send a self probe with Id %d.\n", debugging.Prefix, - utilities.Conditional(probeDirection == lgc.LGC_DOWN, "download", "upload"), + probeDirection, (*selfProbeConnection).ClientId(), probeCount, ) -- cgit v1.2.3