Skip to content

Commit

Permalink
refactor(项目): 完善接入
Browse files Browse the repository at this point in the history
  • Loading branch information
storezhang committed Oct 30, 2024
1 parent d965be0 commit efdba38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.23

require (
github.com/goexl/log v0.0.7
github.com/goexl/task v0.1.3
github.com/goexl/task v0.1.5
github.com/pangum/pangu v1.4.8
)

Expand Down
4 changes: 2 additions & 2 deletions internal/core/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import (
"github.com/pangum/task/internal/config"
)

func NewAgent(config *config.Task, tasker task.Tasker, logger log.Logger) *task.Agent {
return task.New(tasker).Logger(logger).Retries(config.Retries).Build()
func NewAgent(config *config.Task, logger log.Logger) *task.Agent {
return task.New().Logger(logger).Retries(config.Retries).Build()
}
2 changes: 1 addition & 1 deletion internal/plugin/wapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import (
)

type Wrapper struct {
Task *config.Task `json:"task,omitempty" validate:"required"`
Task *config.Task `json:"task,omitempty" default:"{}"`
}

0 comments on commit efdba38

Please sign in to comment.