Remove processing elasticsearch result
This commit is contained in:
parent
67c1d633c6
commit
5cbd2519da
@ -67,12 +67,6 @@ func (est *elasticSearchTransport) Transport(evt TracerTransportEvent) error {
|
|||||||
|
|
||||||
if res.IsError() {
|
if res.IsError() {
|
||||||
return fmt.Errorf("[%s] Error indexing document ID=%s", res.Status(), req.DocumentID)
|
return fmt.Errorf("[%s] Error indexing document ID=%s", res.Status(), req.DocumentID)
|
||||||
} else {
|
|
||||||
// Deserialize the response into a map.
|
|
||||||
var r map[string]interface{}
|
|
||||||
if err := json.NewDecoder(res.Body).Decode(&r); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user