update at 2020-11-13 10:49:38 by ehlxr

This commit is contained in:
ehlxr 2020-11-13 10:49:38 +08:00
parent f1a22cce86
commit 2cc44aa12b
2 changed files with 4 additions and 3 deletions

View File

@ -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()
} }

View File

@ -2,8 +2,9 @@ package pkg
import ( import (
"fmt" "fmt"
"github.com/jessevdk/go-flags"
"os" "os"
"github.com/jessevdk/go-flags"
) )
var ( var (