httplib: fix unstable test, do not use httplib.org
This commit is contained in:
@@ -17,16 +17,15 @@
|
||||
// type DatabaseCheck struct {
|
||||
// }
|
||||
//
|
||||
// func (dc *DatabaseCheck) Check() error {
|
||||
// if dc.isConnected() {
|
||||
// return nil
|
||||
// } else {
|
||||
// return errors.New("can't connect database")
|
||||
// }
|
||||
// }
|
||||
// func (dc *DatabaseCheck) Check() error {
|
||||
// if dc.isConnected() {
|
||||
// return nil
|
||||
// } else {
|
||||
// return errors.New("can't connect database")
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// AddHealthCheck("database",&DatabaseCheck{})
|
||||
//
|
||||
package toolbox
|
||||
|
||||
import (
|
||||
|
||||
@@ -141,11 +141,16 @@ func (t *Task) GetPrev() time.Time {
|
||||
// week:0-6(0 means Sunday)
|
||||
|
||||
// SetCron some signals:
|
||||
// *: any time
|
||||
// ,: separate signal
|
||||
//
|
||||
// *: any time
|
||||
// ,: separate signal
|
||||
//
|
||||
// -:duration
|
||||
// /n : do as n times of time duration
|
||||
//
|
||||
// /n : do as n times of time duration
|
||||
//
|
||||
// ///////////////////////////////////////////////////////
|
||||
//
|
||||
// 0/30 * * * * * every 30s
|
||||
// 0 43 21 * * * 21:43
|
||||
// 0 15 05 * * * 05:15
|
||||
|
||||
Reference in New Issue
Block a user