mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 08:55:59 +01:00
plamas/peer: just use net.Conn for generality
This commit is contained in:
parent
093bbf40ad
commit
f52f2fd26c
1 changed files with 3 additions and 1 deletions
4
peer.go
4
peer.go
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"net"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
|
@ -34,7 +35,8 @@ type peer struct {
|
|||
started int32
|
||||
connected int32
|
||||
disconnect int32 // only to be used atomically
|
||||
// conn *ETcpConn or w/e it is in strux
|
||||
// *ETcpConn or w/e it is in strux
|
||||
conn net.Conn
|
||||
|
||||
// TODO(rosabeef): one for now, may need more granularity
|
||||
sync.RWMutex
|
||||
|
|
Loading…
Add table
Reference in a new issue