MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / Send

Method Send

cli/cmd/sync_v3.go:103–107  ·  view source on GitHub ↗

It is not safe to call write.Send on the same stream in different goroutines

(req *plugin.Write_Request)

Source from the content-addressed store, hash-verified

101
102// It is not safe to call write.Send on the same stream in different goroutines
103func (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
110func (s safeWriteClient) CloseAndRecv() (*plugin.Write_Response, error) {

Callers 8

syncConnectionV2Function · 0.45
syncConnectionV3Function · 0.45
deleteStaleFunction · 0.45
migrateConnectionV3Function · 0.45
migrateSummaryTableFunction · 0.45
sendSummaryFunction · 0.45
syncConnectionV1Function · 0.45
retryBatchSendFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected