]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/tls (part 6/5)
authorAdam Langley <agl@golang.org>
Fri, 6 Nov 2009 00:59:39 +0000 (16:59 -0800)
committerAdam Langley <agl@golang.org>
Fri, 6 Nov 2009 00:59:39 +0000 (16:59 -0800)
Results of running gofmt again.

R=rsc
CC=go-dev
http://go/go-review/1022006

src/pkg/crypto/tls/handshake_server.go
src/pkg/crypto/tls/record_process.go

index 7303189ca234ec15a3f2cfaf0d302fdc5fd68b76..86f11e66c0305f20753306cdc824b628015a132d 100644 (file)
@@ -22,8 +22,8 @@ import (
 )
 
 type cipherSuite struct {
-       id uint16;  // The number of this suite on the wire.
-       hashLength, cipherKeyLength int;
+       id                              uint16; // The number of this suite on the wire.
+       hashLength, cipherKeyLength     int;
        // TODO(agl): need a method to create the cipher and hash interfaces.
 }
 
@@ -226,7 +226,10 @@ func (h *serverHandshake) error(e alertType) {
                // to tell it about the error.
                h.controlChan <- ConnectionState{false, "", e};
                close(h.controlChan);
-               go func() { for _ = range h.msgChan {} }();
+               go func() {
+                       for _ = range h.msgChan {
+                       }
+               }();
                h.writeChan <- alert{alertLevelError, e};
        }
 }
index 4c6931970ab7b22bed7b50af33113c1ab92ad073..1cd6879af94ce98b54d08be3075747860bdca694 100644 (file)
@@ -114,7 +114,10 @@ func (p *recordProcessor) loop(appDataChan chan<- []byte, requestChan <-chan int
 
        p.wakeWaiters();
        go drainRequestChannel(p.requestChan, p.connState);
-       go func() { for _ = range controlChan {} }();
+       go func() {
+               for _ = range controlChan {
+               }
+       }();
 
        close(handshakeChan);
        if len(p.appData) > 0 {