MCPcopy
hub / github.com/micro/go-micro / Close

Method Close

client/rpc_codec.go:264–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262}
263
264func (c *rpcCodec) Close() error {
265 if err := c.buf.Close(); err != nil {
266 return err
267 }
268
269 if err := c.codec.Close(); err != nil {
270 return err
271 }
272
273 if err := c.client.Close(); err != nil {
274 return errors.InternalServerError("go.micro.client.transport", err.Error())
275 }
276
277 return nil
278}
279
280func (c *rpcCodec) String() string {
281 return "rpc"

Callers

nothing calls this directly

Calls 3

InternalServerErrorFunction · 0.92
CloseMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected