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 (
|
||||
dingTalk *dt.Robot
|
||||
limiter *pkg.LimiterServer
|
||||
//limiter *pkg.LimiterServer
|
||||
)
|
||||
|
||||
func init() {
|
||||
@ -30,7 +30,7 @@ func main() {
|
||||
pkg.ParseArg()
|
||||
|
||||
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()
|
||||
}
|
||||
|
@ -2,8 +2,9 @@ package pkg
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/jessevdk/go-flags"
|
||||
"os"
|
||||
|
||||
"github.com/jessevdk/go-flags"
|
||||
)
|
||||
|
||||
var (
|
||||
|
Loading…
Reference in New Issue
Block a user