small fix

This commit is contained in:
elisaveta9
2025-12-26 19:54:07 +03:00
parent b8f8e5607c
commit d76e8245e0
5 changed files with 33 additions and 136 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ type Device struct {
func NewDevice(stream tunnelpb.TunnelService_TunnelServer) *Device {
d := &Device{
stream: stream,
sendCh: make(chan *tunnelpb.Frame, 128), // backpressure here
sendCh: make(chan *tunnelpb.Frame, 128),
done: make(chan struct{}),
streams: make(map[uint32]net.Conn),
streamDone: make(map[uint32]chan struct{}),