refactor(measurexlite): make buffered channels private (#864)
Closes https://github.com/ooni/probe/issues/2215
This commit is contained in:
parent
342a74cad8
commit
e1d014e826
15 changed files with 326 additions and 51 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue