File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import (
2020)
2121
2222type BroflakeConn struct {
23- net.PacketConn
2423 writeChan chan IPCMsg
2524 readChan chan IPCMsg
2625 localAddr common.DebugAddr
@@ -97,6 +96,9 @@ func (c *BroflakeConn) SetReadDeadline(t time.Time) error {
9796 return nil
9897}
9998
99+ func (c * BroflakeConn ) SetWriteDeadline (t time.Time ) error { return nil }
100+ func (c * BroflakeConn ) SetDeadline (t time.Time ) error { return c .SetReadDeadline (t ) }
101+
100102func (c * BroflakeConn ) Close () error {
101103 c .closeOnce .Do (func () {
102104 close (c .writeChan )
@@ -119,7 +121,6 @@ func NewProducerUserStream(wg *sync.WaitGroup) (*BroflakeConn, *WorkerFSM) {
119121 })
120122
121123 bfconn := BroflakeConn {
122- PacketConn : & net.UDPConn {},
123124 writeChan : worker .com .tx ,
124125 readChan : worker .com .rx ,
125126 localAddr : common .DebugAddr (uuid .NewString ()),
@@ -148,7 +149,6 @@ func NewConsumerUserStream(wg *sync.WaitGroup) (*BroflakeConn, *WorkerFSM) {
148149 })
149150
150151 bfconn := BroflakeConn {
151- PacketConn : & net.UDPConn {},
152152 writeChan : worker .com .tx ,
153153 readChan : worker .com .rx ,
154154 localAddr : common .DebugAddr (uuid .NewString ()),
You can’t perform that action at this time.
0 commit comments