mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
daemon/logger: normalize comment formatting
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
5331e6ab2d
commit
ba6bbca89a
2 changed files with 2 additions and 2 deletions
|
@ -203,7 +203,7 @@ func TestCopierSlow(t *testing.T) {
|
|||
}
|
||||
|
||||
var jsonBuf bytes.Buffer
|
||||
//encoder := &encodeCloser{Encoder: json.NewEncoder(&jsonBuf)}
|
||||
// encoder := &encodeCloser{Encoder: json.NewEncoder(&jsonBuf)}
|
||||
jsonLog := &TestLoggerJSON{Encoder: json.NewEncoder(&jsonBuf), delay: 100 * time.Millisecond}
|
||||
|
||||
c := NewCopier(map[string]io.Reader{"stdout": &stdout}, jsonLog)
|
||||
|
|
|
@ -109,7 +109,7 @@ func makeMarshaller() func(m *logger.Message) ([]byte, error) {
|
|||
|
||||
messageToProto(m, proto, md)
|
||||
protoSize := proto.Size()
|
||||
writeLen := protoSize + (2 * encodeBinaryLen) //+ len(messageDelimiter)
|
||||
writeLen := protoSize + (2 * encodeBinaryLen) // + len(messageDelimiter)
|
||||
|
||||
if writeLen > len(buf) {
|
||||
buf = make([]byte, writeLen)
|
||||
|
|
Loading…
Reference in a new issue