crypto/tls (part 6/5)
Results of running gofmt again.
R=rsc
CC=go-dev
http://go/go-review/1022006
diff --git a/src/pkg/crypto/tls/handshake_server.go b/src/pkg/crypto/tls/handshake_server.go
index 7303189..86f11e6 100644
--- a/src/pkg/crypto/tls/handshake_server.go
+++ b/src/pkg/crypto/tls/handshake_server.go
@@ -22,8 +22,8 @@
)
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 @@
// 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};
}
}
diff --git a/src/pkg/crypto/tls/record_process.go b/src/pkg/crypto/tls/record_process.go
index 4c69319..1cd6879 100644
--- a/src/pkg/crypto/tls/record_process.go
+++ b/src/pkg/crypto/tls/record_process.go
@@ -114,7 +114,10 @@
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 {