Skip to content

Commit

Permalink
sneaky sneaky
Browse files Browse the repository at this point in the history
  • Loading branch information
black-adder committed Apr 13, 2017
1 parent ff819a3 commit 6d24481
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crossdock/services/tracehandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,8 @@ func (h *TraceHandler) getTraces(service, operation string, tags map[string]stri
func (h *TraceHandler) createTrace(service string, request *traceRequest) error {
url := h.getClientURL(service) + "/create_traces"

b, err := json.Marshal(request)
if err != nil {
return err
}
// NB. json.Marshal cannot error no matter what traceRequest we give it
b, _ := json.Marshal(request)

resp, err := http.Post(url, "application/json", bytes.NewBuffer(b))
if err != nil {
Expand Down

0 comments on commit 6d24481

Please sign in to comment.