Skip to content

Commit

Permalink
refactor: retry context
Browse files Browse the repository at this point in the history
Signed-off-by: Niklas Treml <[email protected]>
  • Loading branch information
niklastreml committed Aug 5, 2024
1 parent ba281ee commit 63292f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/checks/traceroute/traceroute.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func TraceRoute(ctx context.Context, cfg tracerouteConfig) (map[int][]Hop, error
wg.Add(1)
go func(ttl int) {
defer wg.Done()
err := helper.Retry(func(_ context.Context) error {
err := helper.Retry(func(ctx context.Context) error {
hop, err := traceroute(ctx, addr, ttl, timeoutDuration)
if hop != nil {
results <- *hop
Expand Down

0 comments on commit 63292f0

Please sign in to comment.