Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(queue): upgrade to v0.3.0 and update codebase #829

Merged
merged 2 commits into from
Jan 22, 2025
Merged

chore(queue): upgrade to v0.3.0 and update codebase #829

merged 2 commits into from
Jan 22, 2025

Conversation

appleboy
Copy link
Owner

  • Update dependencies in go.mod to newer versions
  • Add github.com/jpillora/backoff as an indirect dependency
  • Change queue.NewConsumer to queue.NewRing in main.go
  • Remove unnecessary type conversion for WorkerNum in main.go
  • Add Payload method to PushNotification in notification.go
  • Change QueuedMessage to TaskMessage in SendNotification function
  • Modify JSON unmarshal to use Payload method in SendNotification
  • Update Run function to use TaskMessage instead of QueuedMessage
  • Update server_test.go to use TaskMessage instead of QueuedMessage
  • Change data types in status.go for BusyWorkers, SuccessTasks, FailureTasks, and SubmittedTasks

- Update dependencies in `go.mod` to newer versions
- Add `github.com/jpillora/backoff` as an indirect dependency
- Change `queue.NewConsumer` to `queue.NewRing` in `main.go`
- Remove unnecessary type conversion for `WorkerNum` in `main.go`
- Add `Payload` method to `PushNotification` in `notification.go`
- Change `QueuedMessage` to `TaskMessage` in `SendNotification` function
- Modify JSON unmarshal to use `Payload` method in `SendNotification`
- Update `Run` function to use `TaskMessage` instead of `QueuedMessage`
- Update `server_test.go` to use `TaskMessage` instead of `QueuedMessage`
- Change data types in `status.go` for `BusyWorkers`, `SuccessTasks`, `FailureTasks`, and `SubmittedTasks`

Signed-off-by: Bo-Yi Wu <[email protected]>
Signed-off-by: Bo-Yi Wu <[email protected]>
@appleboy appleboy changed the title refactor: refactor message handling and update dependencies chore(queue): upgrade to v0.3.0 and update codebase Jan 22, 2025
@appleboy appleboy merged commit 46d11a5 into master Jan 22, 2025
10 checks passed
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.

1 participant