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

Method CloseAndRecv

cli/cmd/sync_v3.go:110–114  ·  view source on GitHub ↗

It is also not safe to call CloseSend concurrently with SendMsg

()

Source from the content-addressed store, hash-verified

108
109// It is also not safe to call CloseSend concurrently with SendMsg
110func (s safeWriteClient) CloseAndRecv() (*plugin.Write_Response, error) {
111 s.mu.Lock()
112 defer s.mu.Unlock()
113 return s.client.CloseAndRecv()
114}
115
116func newSafeWriteClient(client grpc.ClientStreamingClient[plugin.Write_Request, plugin.Write_Response]) safeWriteClient {
117 return safeWriteClient{client: client, mu: &gosync.Mutex{}}

Callers 5

syncConnectionV2Function · 0.80
syncConnectionV3Function · 0.80
migrateConnectionV3Function · 0.80
syncConnectionV1Function · 0.80
handleSendErrorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected