Skip to content

Commit

Permalink
address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
apolcyn committed Apr 14, 2021
1 parent eef6755 commit afed69f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions internal/transport/http2_client.go
Expand Up @@ -19,7 +19,6 @@
package transport

import (
"bytes"
"context"
"fmt"
"io"
Expand Down Expand Up @@ -1223,12 +1222,7 @@ func (t *http2Client) setGoAwayReason(f *http2.GoAwayFrame) {
t.goAwayReason = GoAwayTooManyPings
}
}
var m bytes.Buffer
m.WriteString("code: ")
m.WriteString(f.ErrCode.String())
m.WriteString(", debug data: ")
m.Write(f.DebugData())
t.goAwayDebugMessage = m.String()
t.goAwayDebugMessage = fmt.Sprintf("code: %s, debug data: %v", f.ErrCode, string(f.DebugData()))
}

func (t *http2Client) GetGoAwayReason() (GoAwayReason, string) {
Expand Down

0 comments on commit afed69f

Please sign in to comment.