rename the logging.Tracer to ConnectionTracer

This commit is contained in:
Marten Seemann
2020-06-29 12:22:58 +07:00
parent 7f6eca84da
commit 4121ea84f4
15 changed files with 154 additions and 154 deletions

View File

@@ -87,7 +87,7 @@ type baseServer struct {
*tls.Config,
*handshake.TokenGenerator,
bool, /* enable 0-RTT */
logging.Tracer,
logging.ConnectionTracer,
utils.Logger,
protocol.VersionNumber,
) quicSession
@@ -447,7 +447,7 @@ func (s *baseServer) createNewSession(
) quicSession {
var sess quicSession
if added := s.sessionHandler.AddWithConnID(clientDestConnID, srcConnID, func() packetHandler {
var tracer logging.Tracer
var tracer logging.ConnectionTracer
if s.config.GetLogWriter != nil {
// Use the same connection ID that is passed to the client's GetLogWriter callback.
connID := clientDestConnID