forked from quic-go/quic-go
fix debug message when returning an early session
This commit is contained in:
@@ -81,8 +81,12 @@ func DialAddrEarly(
|
|||||||
tlsConf *tls.Config,
|
tlsConf *tls.Config,
|
||||||
config *Config,
|
config *Config,
|
||||||
) (EarlySession, error) {
|
) (EarlySession, error) {
|
||||||
defer utils.Logger.WithPrefix(utils.DefaultLogger, "client").Debugf("Returning early session")
|
sess, err := dialAddrContext(context.Background(), addr, tlsConf, config, true)
|
||||||
return dialAddrContext(context.Background(), addr, tlsConf, config, true)
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
utils.Logger.WithPrefix(utils.DefaultLogger, "client").Debugf("Returning early session")
|
||||||
|
return sess, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// DialAddrContext establishes a new QUIC connection to a server using the provided context.
|
// DialAddrContext establishes a new QUIC connection to a server using the provided context.
|
||||||
|
|||||||
Reference in New Issue
Block a user