Skip to content

Commit cd5ea64

Browse files
author
Yuri Shkuro
committed
Fixes
Signed-off-by: Yuri Shkuro <[email protected]>
1 parent 5e4d4f8 commit cd5ea64

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/collector/app/zipkin/http_handler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func waitForSpans(t *testing.T, handler *mockZipkinHandler, expecting int) {
9393
t.Error("never received a span")
9494
return
9595
}
96-
if want, have := expecting, len(handler.getSpans()); want != have {
96+
if have := len(handler.getSpans()); expecting != have {
9797
time.Sleep(time.Millisecond)
9898
continue
9999
}

cmd/collector/app/zipkin/json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func endpointToThrift(e endpoint) (*zipkincore.Endpoint, error) {
149149
}
150150
port := e.Port
151151
if port >= (1 << 15) {
152-
// Zipkin.thrift defines port as i16, so values between (2^16 and 2^16-1) must be encoded as negative
152+
// Zipkin.thrift defines port as i16, so values between (2^15 and 2^16-1) must be encoded as negative
153153
port = port - (1 << 16)
154154
}
155155

0 commit comments

Comments
 (0)