Skip to content

Commit 158d0d0

Browse files
committed
chore: Use standard library atomic bool
1 parent 620d63c commit 158d0d0

File tree

2 files changed

+1
-46
lines changed

2 files changed

+1
-46
lines changed

pkg/rules/sequence.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ import (
2828
"github.com/rabbitstack/fibratus/pkg/filter"
2929
"github.com/rabbitstack/fibratus/pkg/filter/ql"
3030
"github.com/rabbitstack/fibratus/pkg/ps"
31-
"github.com/rabbitstack/fibratus/pkg/util/atomic"
3231
log "github.com/sirupsen/logrus"
3332
"sort"
3433
"sync"
34+
"sync/atomic"
3535
"time"
3636
)
3737

@@ -130,7 +130,6 @@ func newSequenceState(f filter.Filter, c *config.FilterConfig, psnap ps.Snapshot
130130
exprs: make(map[int]string),
131131
spanDeadlines: make(map[fsm.State]*time.Timer),
132132
initialState: sequenceInitialState,
133-
inDeadline: atomic.MakeBool(false),
134133
psnap: psnap,
135134
}
136135

pkg/util/atomic/atomic.go

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)