Skip to content

Commit

Permalink
fixup! agent/tcpconn: add tcp connection drop disruptor
Browse files Browse the repository at this point in the history
  • Loading branch information
roobre committed Nov 6, 2023
1 parent 2ebbffe commit d0700f8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/agent/tcpconn/disruptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ func (d Disruptor) Apply(ctx context.Context, duration time.Duration) error {
return ErrDurationTooShort
}

// Set context timeout only if duration is not 0 (forever).
ctx, cancel := context.WithTimeout(ctx, duration)
defer cancel()

Expand Down

0 comments on commit d0700f8

Please sign in to comment.