remove two stray TODOs from the crypto setup

This commit is contained in:
Marten Seemann
2019-04-01 12:04:19 +09:00
parent 7e5d890c99
commit e9f7f87063

View File

@@ -91,7 +91,6 @@ type cryptoSetup struct {
oneRTTStream io.Writer oneRTTStream io.Writer
opener Opener opener Opener
sealer Sealer sealer Sealer
// TODO: add a 1-RTT stream (used for session tickets)
receivedWriteKey chan struct{} receivedWriteKey chan struct{}
receivedReadKey chan struct{} receivedReadKey chan struct{}
@@ -416,7 +415,6 @@ func (h *cryptoSetup) handleMessageForClient(msgType messageType) bool {
// ReadHandshakeMessage is called by TLS. // ReadHandshakeMessage is called by TLS.
// It blocks until a new handshake message is available. // It blocks until a new handshake message is available.
func (h *cryptoSetup) ReadHandshakeMessage() ([]byte, error) { func (h *cryptoSetup) ReadHandshakeMessage() ([]byte, error) {
// TODO: add some error handling here (when the session is closed)
msg, ok := <-h.messageChan msg, ok := <-h.messageChan
if !ok { if !ok {
return nil, errors.New("error while handling the handshake message") return nil, errors.New("error while handling the handshake message")