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 {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
selfAddrs := make([]net.Addr, 0, len(externalIPs))
|
||||
for _, ip := range externalIPs {
|
||||
selfAddrs = append(selfAddrs, ip)
|
||||
}
|
||||
selfAddrs = append(selfAddrs, externalIPs...)
|
||||
|
||||
chanGraph := chanDB.ChannelGraph()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user