data_sender
This commit is contained in:
parent
048a8e70ca
commit
625bfc3a89
|
@ -61,7 +61,6 @@ func (ds *DataSender) check() {
|
||||||
for _, item := range items {
|
for _, item := range items {
|
||||||
collectedData := item.Value.(*Data)
|
collectedData := item.Value.(*Data)
|
||||||
collectedData.AgentId = agentIdentifier()
|
collectedData.AgentId = agentIdentifier()
|
||||||
log.Println("collectedData : ", collectedData)
|
|
||||||
result = append(result, collectedData)
|
result = append(result, collectedData)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,7 +101,6 @@ func saveFailedData(datas []*Data) {
|
||||||
for _, data := range datas {
|
for _, data := range datas {
|
||||||
|
|
||||||
bytes, err := json.Marshal(&data)
|
bytes, err := json.Marshal(&data)
|
||||||
log.Println("write : ", string(bytes))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user