fix(vpn): use unbuffered channel in speaker (#15863)

Closes https://github.com/coder/internal/issues/253.
This commit is contained in:
Ethan
2024-12-16 19:48:00 +11:00
committed by GitHub
parent 50bb13ca7d
commit 67fdbe5f49

View File

@ -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
}