Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor message handling and update dependencies
- 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]>
- Loading branch information