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

refactor: refactor QueuedMessage to TaskMessage across the codebase #139

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

appleboy
Copy link
Member

  • Rename QueuedMessage to TaskMessage throughout the codebase
  • Change method Bytes() to Payload() for TaskMessage
  • Update comments to reflect the new TaskMessage interface
  • Add a new mock file mock_task_message.go for the TaskMessage interface
  • Rename mock_message.go to mock_queued_message.go
  • Update test cases to use TaskMessage instead of QueuedMessage
  • Remove unused import github.com/golang-queue/queue/job from ring.go
  • Comment out the Data struct and its methods in ring.go

- Rename `QueuedMessage` to `TaskMessage` throughout the codebase
- Change method `Bytes()` to `Payload()` for `TaskMessage`
- Update comments to reflect the new `TaskMessage` interface
- Add a new mock file `mock_task_message.go` for the `TaskMessage` interface
- Rename `mock_message.go` to `mock_queued_message.go`
- Update test cases to use `TaskMessage` instead of `QueuedMessage`
- Remove unused import `github.com/golang-queue/queue/job` from `ring.go`
- Comment out the `Data` struct and its methods in `ring.go`

Signed-off-by: Bo-Yi Wu <[email protected]>
@appleboy appleboy merged commit aa37482 into master Jan 20, 2025
5 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