From f69f743d8aca9925e88634fac81bd47e392b2b49 Mon Sep 17 00:00:00 2001 From: harrylee <18761806026@163.com> Date: Fri, 19 Feb 2021 15:01:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=85=B1=E8=AF=86=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E7=9B=91=E5=90=AC=E6=94=B9=E4=B8=BA=E7=9B=91=E5=90=AC=E5=A4=96?= =?UTF-8?q?=E7=BD=91=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/consensus/raft/raft.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/consensus/raft/raft.go b/plugin/consensus/raft/raft.go index 5f6bc5f8a4..c6f648dcae 100644 --- a/plugin/consensus/raft/raft.go +++ b/plugin/consensus/raft/raft.go @@ -193,8 +193,7 @@ func (rc *raftNode) serveRaft() { rlog.Error(fmt.Sprintf("raft: Failed parsing URL (%v)", err.Error())) panic(err) } - - ln, err := newStoppableListener(rc.ctx, nodeURL.Host) + ln, err := newStoppableListener(rc.ctx, fmt.Sprintf(":%s",nodeURL.Port())) if err != nil { rlog.Error(fmt.Sprintf("raft: Failed to listen rafthttp (%v)", err.Error())) panic(err) From b9245ec3e1f75adc06df393197a7f887114aedc7 Mon Sep 17 00:00:00 2001 From: vipwzw Date: Fri, 19 Feb 2021 15:10:27 +0800 Subject: [PATCH 2/2] auto ci --- plugin/consensus/raft/raft.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/consensus/raft/raft.go b/plugin/consensus/raft/raft.go index c6f648dcae..1270e3e878 100644 --- a/plugin/consensus/raft/raft.go +++ b/plugin/consensus/raft/raft.go @@ -193,7 +193,7 @@ func (rc *raftNode) serveRaft() { rlog.Error(fmt.Sprintf("raft: Failed parsing URL (%v)", err.Error())) panic(err) } - ln, err := newStoppableListener(rc.ctx, fmt.Sprintf(":%s",nodeURL.Port())) + ln, err := newStoppableListener(rc.ctx, fmt.Sprintf(":%s", nodeURL.Port())) if err != nil { rlog.Error(fmt.Sprintf("raft: Failed to listen rafthttp (%v)", err.Error())) panic(err)