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)