data_sender
This commit is contained in:
parent
87f6a06831
commit
34bdb1d8af
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user