Skip to content

Commit

Permalink
server: address comments
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <nolouch@gmail.com>
  • Loading branch information
nolouch committed Apr 25, 2019
1 parent 89e49a4 commit 8a0f6ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/heartbeat_streams.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,14 @@ func (s *heartbeatStreams) sendErr(errType pdpb.ErrorType, errMsg string, target

msg := &pdpb.RegionHeartbeatResponse{
Header: &pdpb.ResponseHeader{
ClusterId: s.clusterID,
ClusterId: s.clusterID,
TargetPeer: targetPeer,
Error: &pdpb.Error{
Type: errType,
Message: errMsg,
},
},
}
msg.TargetPeer = targetPeer

select {
case s.msgCh <- msg:
Expand Down

0 comments on commit 8a0f6ab

Please sign in to comment.