From 34bdb1d8af5a4a8a8eef47ef2768400c5e492901 Mon Sep 17 00:00:00 2001 From: "insanity@loafle.com" Date: Thu, 27 Apr 2017 10:20:08 +0900 Subject: [PATCH] data_sender --- data_sender.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data_sender.go b/data_sender.go index 93be1f0..6c0d828 100644 --- a/data_sender.go +++ b/data_sender.go @@ -16,7 +16,7 @@ import ( const ( CENTRAL_ADDR = "127.0.0.1:50052" - FILE_PATH = "/home/insanity/data/data.tmp" + FILE_PATH = "/overflow/tmp/data.tmp" SENDER_ID = "OVERFLOW_DATA_SENDER" DEFAULT_INTERVAL = uint64(5) ) @@ -81,7 +81,6 @@ func (ds *DataSender) send(data []*Data) { ds.removeFailed() } - return conn, err := grpc.Dial(CENTRAL_ADDR, grpc.WithInsecure()) if err != nil { ds.saveFailedData(data)