Merge pull request #2419 from cfromknecht/brontide-buffer-pool

brontide: read buffer pool
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2019-02-18 17:51:17 -08:00
commit 9d23d382fc
17 files changed
+579 -214

No files matched your search

+2 -1
View File
@@ -18,6 +18,7 @@ import (
"github.com/davecgh/go-spew/spew"
"github.com/lightningnetwork/lnd/brontide"
"github.com/lightningnetwork/lnd/buffer"
"github.com/lightningnetwork/lnd/chainntnfs"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/contractcourt"
@@ -212,7 +213,7 @@ type peer struct {
// messages to write out directly on the socket. By re-using this
// buffer, we avoid needing to allocate more memory each time a new
// message is to be sent to a peer.
writeBuf *lnpeer.WriteBuffer
writeBuf *buffer.Write
queueQuit chan struct{}
quit chan struct{}