mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix(vpn): use unbuffered channel in speaker (#15863)
Closes https://github.com/coder/internal/issues/253.
This commit is contained in:
+1
-1
@@ -225,7 +225,7 @@ func (s *speaker[_, R, _]) newRPC() (uint64, chan R) {
|
||||
defer s.mu.Unlock()
|
||||
msgID := s.nextMsgID
|
||||
s.nextMsgID++
|
||||
c := make(chan R, 1)
|
||||
c := make(chan R)
|
||||
s.responseChans[msgID] = c
|
||||
return msgID, c
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user