Method
Call
(ctx context.Context, method string, request []byte)
Source from the content-addressed store, hash-verified
| 21 | } |
| 22 | |
| 23 | func (c *guardedPluginClient) Call(ctx context.Context, method string, request []byte) ([]byte, error) { |
| 24 | inner, errAcquire := c.acquire() |
| 25 | if errAcquire != nil { |
| 26 | return nil, errAcquire |
| 27 | } |
| 28 | defer c.release() |
| 29 | return inner.Call(ctx, method, request) |
| 30 | } |
| 31 | |
| 32 | func (c *guardedPluginClient) acquire() (pluginClient, error) { |
| 33 | if c == nil { |
Callers
nothing calls this directly
Tested by
no test coverage detected