It is not safe to call write.Send on the same stream in different goroutines
(req *plugin.Write_Request)
| 101 | |
| 102 | // It is not safe to call write.Send on the same stream in different goroutines |
| 103 | func (s safeWriteClient) Send(req *plugin.Write_Request) error { |
| 104 | s.mu.Lock() |
| 105 | defer s.mu.Unlock() |
| 106 | return s.client.Send(req) |
| 107 | } |
| 108 | |
| 109 | // It is also not safe to call CloseSend concurrently with SendMsg |
| 110 | func (s safeWriteClient) CloseAndRecv() (*plugin.Write_Response, error) { |
no outgoing calls
no test coverage detected