rename the methods of the sessionRunner interface

This commit is contained in:
Marten Seemann 2019-03-05 13:48:01 +09:00
parent 759cd289c9
commit 733dcb75eb
7 changed files with 73 additions and 77 deletions

View file

@ -358,9 +358,8 @@ func (c *client) createNewTLSSession(version protocol.VersionNumber) error {
c.mutex.Lock()
defer c.mutex.Unlock()
runner := &runner{
packetHandlerManager: c.packetHandlers,
onHandshakeCompleteImpl: func(_ Session) { close(c.handshakeChan) },
retireConnectionIDImpl: c.packetHandlers.Retire,
removeConnectionIDImpl: c.packetHandlers.Remove,
}
sess, err := newClientSession(
c.conn,