Commit 278041a9 authored by suyanlong's avatar suyanlong

Merge branch 'master' of https://gitlab.33.cn/link33/sidecar

parents 1ab3595a 2ab33312
...@@ -50,6 +50,7 @@ func (p *PortMap) add(pt Port) { ...@@ -50,6 +50,7 @@ func (p *PortMap) add(pt Port) {
if p.local == nil { if p.local == nil {
p.local = pt p.local = pt
} }
p.peerPort[pt.ID()] = pt
case Appchain: case Appchain:
p.appchainPort[pt.ID()] = pt p.appchainPort[pt.ID()] = pt
case Sidecar: case Sidecar:
...@@ -163,6 +164,7 @@ func (p *PortMap) remove(pt Port) { ...@@ -163,6 +164,7 @@ func (p *PortMap) remove(pt Port) {
if p.local.ID() == pt.ID() { if p.local.ID() == pt.ID() {
p.local = nil p.local = nil
} }
delete(p.peerPort, pt.ID())
case Appchain: case Appchain:
delete(p.appchainPort, pt.ID()) delete(p.appchainPort, pt.ID())
case Sidecar: case Sidecar:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment