mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
rafthttp: better comment for streamWriter
This commit is contained in:
parent
56318f5433
commit
11d3e9ac69
@ -95,8 +95,7 @@ type outgoingConn struct {
|
|||||||
io.Closer
|
io.Closer
|
||||||
}
|
}
|
||||||
|
|
||||||
// streamWriter is a long-running go-routine that writes messages into the
|
// streamWriter writes messages to the attached outgoingConn.
|
||||||
// attached outgoingConn.
|
|
||||||
type streamWriter struct {
|
type streamWriter struct {
|
||||||
id types.ID
|
id types.ID
|
||||||
status *peerStatus
|
status *peerStatus
|
||||||
@ -113,6 +112,8 @@ type streamWriter struct {
|
|||||||
done chan struct{}
|
done chan struct{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// startStreamWriter creates a streamWrite and starts a long running go-routine that accepts
|
||||||
|
// messages and writes to the attached outgoing connection.
|
||||||
func startStreamWriter(id types.ID, status *peerStatus, fs *stats.FollowerStats, r Raft) *streamWriter {
|
func startStreamWriter(id types.ID, status *peerStatus, fs *stats.FollowerStats, r Raft) *streamWriter {
|
||||||
w := &streamWriter{
|
w := &streamWriter{
|
||||||
id: id,
|
id: id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user