Skip to content

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 <appleboy.tw@gmail.com>
@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