rafthttp: fix streamHandle outgoingConn peerID (#12179)

release-3.5
nicktming 2020-07-29 05:41:10 +08:00 committed by GitHub
parent bc67babee8
commit 6c81b20ec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ func (h *streamHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
Flusher: w.(http.Flusher),
Closer: c,
localID: h.tr.ID,
peerID: h.id,
peerID: from,
}
p.attachOutgoingConn(conn)
<-c.closeNotify()