Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
fako1024 committed May 23, 2024
1 parent c654c55 commit 5bf9ffd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/capture/capture.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const (

// MaxIfaces is the maximum number of interfaces we can monitor
MaxIfaces = 1024

captureLockTimeout = 30 * time.Second // Timeout for the three-point lock mechanism
)

var (
Expand Down Expand Up @@ -162,7 +164,7 @@ func (c *Capture) run() (err error) {

c.capLock = concurrency.NewThreePointLock(
concurrency.WithMemPool(memPool),
concurrency.WithTimeout(30*time.Second),
concurrency.WithTimeout(captureLockTimeout),
concurrency.WithLockRequestFn(c.captureHandle.Unblock),
concurrency.WithUnlockRequestFn(c.captureHandle.Unblock),
)
Expand Down

0 comments on commit 5bf9ffd

Please sign in to comment.