From 4b03045eb5c070eedee72cd8ca1f0713c9774e55 Mon Sep 17 00:00:00 2001 From: "insanity@loafle.com" Date: Fri, 4 Aug 2017 12:08:17 +0900 Subject: [PATCH] fix --- data_sender/data_sender.go | 3 +-- data_sender/data_sender_test.go | 4 ++-- event_sender/event_sender.go | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/data_sender/data_sender.go b/data_sender/data_sender.go index e8252a8..38e1674 100644 --- a/data_sender/data_sender.go +++ b/data_sender/data_sender.go @@ -6,8 +6,8 @@ import ( "git.loafle.net/overflow/overflow_probe/agent_api/messages" pb "git.loafle.net/overflow/overflow_probe/crawler/grpc" q "git.loafle.net/overflow/overflow_probe/queue" - "io/ioutil" log "github.com/cihub/seelog" + "io/ioutil" "os" "sync" ) @@ -180,4 +180,3 @@ func tempFile() (*os.File, error) { return file, nil } - diff --git a/data_sender/data_sender_test.go b/data_sender/data_sender_test.go index b889a05..5af5237 100644 --- a/data_sender/data_sender_test.go +++ b/data_sender/data_sender_test.go @@ -20,12 +20,12 @@ func TestTotal(t *testing.T) { time.Sleep(time.Second * 5) for i := 0; i < 20; i++ { - testNotify(strconv.Itoa(i)) + //testNotify(strconv.Itoa(i)) } time.Sleep(time.Second * 12) for i := 20; i < 30; i++ { - testNotify(strconv.Itoa(i)) + //testNotify(strconv.Itoa(i)) } time.Sleep(time.Second * 100) diff --git a/event_sender/event_sender.go b/event_sender/event_sender.go index 2858909..d2e161e 100644 --- a/event_sender/event_sender.go +++ b/event_sender/event_sender.go @@ -147,4 +147,3 @@ func (es *EventSender) send(data []*messages.Event) { } log.Debug(out) } -