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

View File

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