Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to improve the event handling and token management in the project. The most important changes include the addition of a TCP client for event listening, the removal of the token manager dependency from the user controller, and updates to the Go module dependencies.
Event Handling Improvements:
cmd/queryer/main.go: Added a TCP client to listen for events and modified the event polling mechanism to handle events until the queue is empty.Token Management Simplification:
pkg/query/httphandler/controller/user_controller.go: Removed the token manager from theUserControllerand updated the token creation and refresh methods to use theauthpackage directly. [1] [2] [3] [4]Dependency Updates:
go.mod: Updated the versions ofgithub.com/L4B0MB4/EVTSRCandgithub.com/PRYVT/utilsto the latest releases.Code Cleanup:
cmd/queryer/main.go: Removed the initialization of the token manager and its usage in the user controller and authentication middleware.Import Adjustments:
cmd/queryer/main.go: Added the import for the new TCP client package.