Skip to content

bugfix: Fixed issue with global shared RegExps for queue#10

Merged
leonzz merged 1 commit into
kev1n80:masterfrom
moredure:fix-issue-with-shared-regexps
Nov 30, 2023
Merged

bugfix: Fixed issue with global shared RegExps for queue#10
leonzz merged 1 commit into
kev1n80:masterfrom
moredure:fix-issue-with-shared-regexps

Conversation

@moredure
Copy link
Copy Markdown

@moredure moredure commented Jan 9, 2023

When multiple instances of queue instantiated shared regexp can result in incorrect regexp used for all except last instance of queue created.

@moredure moredure changed the title Fixed issue with shared RegExps bugfix: Fixed issue with shared RegExps Jan 11, 2023
@leonzz
Copy link
Copy Markdown
Collaborator

leonzz commented Sep 22, 2023

Thanks @moredure for sending in the fix. Could you update the description and describe the issue in more detail? IIUC shared global var should be ok as Golang regexp is documented as safe for concurrent use: https://pkg.go.dev/regexp#Regexp

@moredure
Copy link
Copy Markdown
Author

moredure commented Sep 22, 2023

@leonzz, updated description

@moredure moredure changed the title bugfix: Fixed issue with shared RegExps bugfix: Fixed issue with global shared RegExps for queue Sep 22, 2023
Comment thread diskqueue.go
@CatherineF-dev
Copy link
Copy Markdown
Collaborator

/lgtm

@CatherineF-dev
Copy link
Copy Markdown
Collaborator

cc @leonzz I think we can mark the conversation as resolved and let it merged?

@leonzz leonzz merged commit 71f60e7 into kev1n80:master Nov 30, 2023
@leonzz
Copy link
Copy Markdown
Collaborator

leonzz commented Nov 30, 2023

Thanks! resolved the comment thread and merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants