mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
rafthttp: streamReader roundtrip -> dial
This commit is contained in:
parent
a299f68e09
commit
8ec28f27d1
@ -219,7 +219,7 @@ func startStreamReader(tr http.RoundTripper, u string, t streamType, from, to, c
|
||||
|
||||
func (cr *streamReader) run() {
|
||||
for {
|
||||
rc, err := cr.roundtrip()
|
||||
rc, err := cr.dial()
|
||||
if err != nil {
|
||||
log.Printf("rafthttp: roundtripping error: %v", err)
|
||||
} else {
|
||||
@ -307,7 +307,7 @@ func (cr *streamReader) isWorking() bool {
|
||||
return cr.closer != nil
|
||||
}
|
||||
|
||||
func (cr *streamReader) roundtrip() (io.ReadCloser, error) {
|
||||
func (cr *streamReader) dial() (io.ReadCloser, error) {
|
||||
cr.mu.Lock()
|
||||
u := cr.u
|
||||
term := cr.msgAppTerm
|
||||
|
Loading…
x
Reference in New Issue
Block a user