lnd: one append instead of appends in a loop
This commit is contained in:
parent
63419c1870
commit
ed595adf59
@ -598,10 +598,9 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB,
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
selfAddrs := make([]net.Addr, 0, len(externalIPs))
|
selfAddrs := make([]net.Addr, 0, len(externalIPs))
|
||||||
for _, ip := range externalIPs {
|
selfAddrs = append(selfAddrs, externalIPs...)
|
||||||
selfAddrs = append(selfAddrs, ip)
|
|
||||||
}
|
|
||||||
|
|
||||||
chanGraph := chanDB.ChannelGraph()
|
chanGraph := chanDB.ChannelGraph()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user