Skip to content

Commit

Permalink
Job interface open
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoyo committed Mar 9, 2021
1 parent 7fe2aef commit 432cb9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion forest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type EchoJob struct {

}

func (*EchoJob) execute(params string) (string, error) {
func (*EchoJob) Execute(params string) (string, error) {

time.Sleep(time.Second * 5)
fmt.Println("参数:", params)
Expand Down
2 changes: 1 addition & 1 deletion job.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package bus

type Job interface {
execute(params string) (string, error)
Execute(params string) (string, error)
}

0 comments on commit 432cb9e

Please sign in to comment.