discovery+server: send lazy gossip msgs

This commit is contained in:
Conner Fromknecht 2019-03-05 17:08:48 -08:00
parent 2e5bc783f7
commit 0ae06c8189
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7
2 changed files with 3 additions and 3 deletions

@ -358,7 +358,7 @@ func (d *AuthenticatedGossiper) SynchronizeNode(syncPeer lnpeer.Peer) error {
// With all the announcement messages gathered, send them all in a
// single batch to the target peer.
return syncPeer.SendMessage(false, announceMessages...)
return syncPeer.SendMessageLazy(false, announceMessages...)
}
// PropagateChanPolicyUpdate signals the AuthenticatedGossiper to update the
@ -1111,7 +1111,7 @@ func (d *AuthenticatedGossiper) InitSyncState(syncPeer lnpeer.Peer,
encodingType: encoding,
chunkSize: encodingTypeToChunkSize[encoding],
sendToPeer: func(msgs ...lnwire.Message) error {
return syncPeer.SendMessage(false, msgs...)
return syncPeer.SendMessageLazy(false, msgs...)
},
})
copy(syncer.peerPub[:], nodeID[:])

@ -2080,7 +2080,7 @@ func (s *server) sendPeerMessages(
errChans = append(errChans, errChan)
}
targetPeer.queueMsg(msg, errChan)
targetPeer.queueMsgLazy(msg, errChan)
}
return errChans