refactor(measurexlite): make buffered channels private (#864)
Closes https://github.com/ooni/probe/issues/2215
This commit is contained in:
@@ -141,7 +141,7 @@ func (m *Measurer) tcpConnect(ctx context.Context, index int64,
|
||||
ol.Stop(err)
|
||||
measurexlite.MaybeClose(conn)
|
||||
sp := &SinglePing{
|
||||
TCPConnect: <-trace.TCPConnect,
|
||||
TCPConnect: trace.FirstTCPConnectOrNil(), // record the first connect from the buffer
|
||||
}
|
||||
return sp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user