Skip to content

Commit 504884c

Browse files
committed
Fix Job and scheduler
1 parent 5c3d0ff commit 504884c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package mmbot
22

33
// JobFunc is job action function.
4-
type JobFunc func(*Robot) error
4+
type JobFunc func(*Robot)
55

66
// Job is a scheduled task.
77
type Job struct {

robot.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func (r *Robot) runLoop() {
5656
go r.startServer()
5757
}
5858
go r.startClient()
59+
r.startScheduler()
5960

6061
receiver := r.Client.Receiver()
6162
for {

0 commit comments

Comments
 (0)