From 2cc44aa12bdce7936d745776e48b732a10f1c908 Mon Sep 17 00:00:00 2001 From: ehlxr Date: Fri, 13 Nov 2020 10:49:38 +0800 Subject: [PATCH] update at 2020-11-13 10:49:38 by ehlxr --- main.go | 4 ++-- pkg/parser.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index c84b8a9..540e702 100644 --- a/main.go +++ b/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() } diff --git a/pkg/parser.go b/pkg/parser.go index 271797a..e1d2324 100644 --- a/pkg/parser.go +++ b/pkg/parser.go @@ -2,8 +2,9 @@ package pkg import ( "fmt" - "github.com/jessevdk/go-flags" "os" + + "github.com/jessevdk/go-flags" ) var (