Skip to content

Commit

Permalink
refactor: clean up code by removing commented-out sections
Browse files Browse the repository at this point in the history
- Remove commented-out `Data` struct and its associated methods
- Remove commented-out code within the `Run` function

Signed-off-by: appleboy <[email protected]>
  • Loading branch information
appleboy committed Jan 29, 2025
1 parent 94d1fc8 commit bd9c305
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ring.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,8 @@ type Ring struct {
stopFlag int32
}

// type Data struct {
// Payload []byte `json:"payload"`
// }

// func (d *Data) Bytes() []byte {
// return d.Payload
// }

// Run to execute new task
func (s *Ring) Run(ctx context.Context, task core.TaskMessage) error {
// v, _ := task.(*job.Message)
// data := &Data{
// Payload: v.Body,
// }
return s.runFunc(ctx, task)
}

Expand Down

0 comments on commit bd9c305

Please sign in to comment.