Skip to content

Commit

Permalink
Unslice to simplify (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas authored and jmacd committed Nov 18, 2019
1 parent 90ba74e commit eb3b31e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/core/span_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func decodeHex(h string, b []byte) error {
return err
}

copy(b[:], decoded)
copy(b, decoded)
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion propagation/http_trace_context_propagator.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (hp HTTPTraceContextPropagator) extractSpanContext(
if len(sections[2]) != 16 {
return core.EmptySpanContext()
}
sc.SpanID, err = core.SpanIDFromHex(sections[2][:])
sc.SpanID, err = core.SpanIDFromHex(sections[2])
if err != nil {
return core.EmptySpanContext()
}
Expand Down

0 comments on commit eb3b31e

Please sign in to comment.