diff --git a/common.go b/common.go index 31bdb84..2145b7b 100644 --- a/common.go +++ b/common.go @@ -106,7 +106,8 @@ func mutualVersion(theirMajor, theirMinor uint8) (major, minor uint8, ok bool) { // A nop implements the NULL encryption and MAC algorithms. type nop struct{} -func (nop) XORKeyStream(buf []byte) {} +func (nop) XORKeyStream(buf []byte) { +} func (nop) Write(buf []byte) (int, os.Error) { return len(buf), nil; @@ -116,7 +117,8 @@ func (nop) Sum() []byte { return nil; } -func (nop) Reset() {} +func (nop) Reset() { +} func (nop) Size() int { return 0; diff --git a/record_write.go b/record_write.go index 241dbec..38135c9 100644 --- a/record_write.go +++ b/record_write.go @@ -74,10 +74,16 @@ func (w *recordWriter) loop(writer io.Writer, appChan <-chan []byte, controlChan } if !closed(appChan) { - go func() { for _ = range appChan {} }(); + go func() { + for _ = range appChan { + } + }(); } if !closed(controlChan) { - go func() { for _ = range controlChan {} }(); + go func() { + for _ = range controlChan { + } + }(); } }