Skip to content

Commit bd9c305

Browse files
committed
refactor: clean up code by removing commented-out sections
- Remove commented-out `Data` struct and its associated methods - Remove commented-out code within the `Run` function Signed-off-by: appleboy <[email protected]>
1 parent 94d1fc8 commit bd9c305

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

ring.go

-12
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,8 @@ type Ring struct {
2525
stopFlag int32
2626
}
2727

28-
// type Data struct {
29-
// Payload []byte `json:"payload"`
30-
// }
31-
32-
// func (d *Data) Bytes() []byte {
33-
// return d.Payload
34-
// }
35-
3628
// Run to execute new task
3729
func (s *Ring) Run(ctx context.Context, task core.TaskMessage) error {
38-
// v, _ := task.(*job.Message)
39-
// data := &Data{
40-
// Payload: v.Body,
41-
// }
4230
return s.runFunc(ctx, task)
4331
}
4432

0 commit comments

Comments
 (0)