Skip to content

Commit

Permalink
golint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
krnowak committed Aug 30, 2019
1 parent 8877950 commit 254c30c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions experimental/bridge/opentracing/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,15 +285,15 @@ func (t *bridgeTracer) StartSpanWithContext(ctx context.Context, operationName s
otelSpanContext: otelSpan.SpanContext(),
}
if bReference.spanContext != nil {
bReference.spanContext.ForeachBaggageItem(func (k, v string) bool {
bReference.spanContext.ForeachBaggageItem(func(k, v string) bool {
sctx.setBaggageItem(k, v)
return true
})
}
span := &bridgeSpan{
otelSpan: otelSpan,
ctx: sctx,
tracer: t,
ctx: sctx,
tracer: t,
}

ctx = ot.ContextWithSpan(ctx, span)
Expand Down Expand Up @@ -450,7 +450,7 @@ func (t *bridgeTracer) Inject(sm ot.SpanContext, format interface{}, carrier int
hhcarrier.Set(traceIDHeader, traceIDString(bridgeSC.otelSpanContext.TraceID))
hhcarrier.Set(spanIDHeader, spanIDToString(bridgeSC.otelSpanContext.SpanID))
hhcarrier.Set(traceOptionsHeader, traceOptionsToString(bridgeSC.otelSpanContext.TraceOptions))
bridgeSC.ForeachBaggageItem(func (k, v string) bool {
bridgeSC.ForeachBaggageItem(func(k, v string) bool {
// we assume that keys are already canonicalized
hhcarrier.Set(baggageHeaderPrefix+k, v)
return true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func main() {
otlog.String("event", "string-format"),
otlog.String("value", helloStr),
)
w.Write([]byte(helloStr))
_, _ = w.Write([]byte(helloStr))
})

log.Fatal(http.ListenAndServe(":8081", nil))
Expand Down

0 comments on commit 254c30c

Please sign in to comment.