File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11module github.com/frostbyte73/core
22
3- go 1.19
3+ go 1.22.1
44
55require (
6- github.com/gammazero/deque v0.2.1
6+ github.com/gammazero/deque v1.0.0
77 github.com/stretchr/testify v1.8.1
88)
99
Original file line number Diff line number Diff line change 11github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
22github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
33github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
4- github.com/gammazero/deque v0.2.1 h1:qSdsbG6pgp6nL7A0+K/B7s12mcCY/5l5SIUpMOl+dC0 =
5- github.com/gammazero/deque v0.2.1 /go.mod h1:LFroj8x4cMYCukHJDbxFCkT+r9AndaJnFMuZDV34tuU =
4+ github.com/gammazero/deque v1.0.0 h1:LTmimT8H7bXkkCy6gZX7zNLtkbz4NdS2z8LZuor3j34 =
5+ github.com/gammazero/deque v1.0.0 /go.mod h1:iflpYvtGfM3U8S8j+sZEKIak3SAKYpA5/SQewgfXDKo =
66github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
77github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
88github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ type worker struct {
118118
119119 active bool
120120 next chan func ()
121- deque * deque.Deque [func ()]
121+ deque deque.Deque [func ()]
122122 draining Fuse
123123 done Fuse
124124 kill Fuse
@@ -132,8 +132,8 @@ func NewQueueWorker(params QueueWorkerParams) QueueWorker {
132132 w := & worker {
133133 QueueWorkerParams : params ,
134134 next : make (chan func (), 1 ),
135- deque : deque.New [func ()](params .QueueSize ),
136135 }
136+ w .deque .SetBaseCap (params .QueueSize )
137137 go w .run ()
138138 return w
139139}
You can’t perform that action at this time.
0 commit comments