update at 2020-11-13 10:49:38 by ehlxr
This commit is contained in:
parent
f1a22cce86
commit
2cc44aa12b
4
main.go
4
main.go
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
dingTalk *dt.Robot
|
dingTalk *dt.Robot
|
||||||
limiter *pkg.LimiterServer
|
//limiter *pkg.LimiterServer
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@ -30,7 +30,7 @@ func main() {
|
|||||||
pkg.ParseArg()
|
pkg.ParseArg()
|
||||||
|
|
||||||
dingTalk = dt.NewRobot(pkg.Opts.Robot.Token, pkg.Opts.Robot.Secret)
|
dingTalk = dt.NewRobot(pkg.Opts.Robot.Token, pkg.Opts.Robot.Secret)
|
||||||
limiter = pkg.NewLimiterServer(1*time.Minute, 20)
|
//limiter = pkg.NewLimiterServer(1*time.Minute, 20)
|
||||||
|
|
||||||
tailFile()
|
tailFile()
|
||||||
}
|
}
|
||||||
|
@ -2,8 +2,9 @@ package pkg
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/jessevdk/go-flags"
|
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"github.com/jessevdk/go-flags"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
Loading…
Reference in New Issue
Block a user