优化结构
This commit is contained in:
@@ -34,7 +34,7 @@ func (methods *TaskMethods) RegisterTasks(registry *platformtask.Registry) {
|
||||
if err := methods.maintenance.CleanupExpired(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
return methods.tasks.CleanupLogs(ctx)
|
||||
return methods.tasks.CleanupTaskLogs(ctx)
|
||||
},
|
||||
})
|
||||
registry.Register(platformtask.Method{
|
||||
|
||||
@@ -25,7 +25,7 @@ func (r *workerTaskRepo) CreateTask(context.Context, *taskbiz.TimedTask) error {
|
||||
func (r *workerTaskRepo) UpdateTask(context.Context, *taskbiz.TimedTask) error { return nil }
|
||||
func (r *workerTaskRepo) DeleteTask(context.Context, uint) error { return nil }
|
||||
func (r *workerTaskRepo) ToggleTask(context.Context, uint, bool) error { return nil }
|
||||
func (r *workerTaskRepo) CleanupLogs(context.Context) error { return nil }
|
||||
func (r *workerTaskRepo) CleanupTaskLogs(context.Context) error { return nil }
|
||||
func (r *workerTaskRepo) TaskNameExists(context.Context, string, uint) (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user