Skip to content

Commit

Permalink
add close method to chunk.Client
Browse files Browse the repository at this point in the history
  • Loading branch information
John Doak authored and John Doak committed Feb 5, 2021
1 parent a276283 commit 3cfaba9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ipc/uds/highlevel/chunk/chunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ func New(rwc io.ReadWriteCloser, options ...Option) (*Client, error) {
return client, nil
}

// Close closes the underlying io.ReadWriteCloser.
func (c *Client) Close() error {
return c.rwc.Close()
}

// Recycle recycles a *bytes.Buffer. This should only be done when the Buffer is no longer
// in use (including its internal []byte slice).
func (c *Client) Recycle(b *bytes.Buffer) {
Expand Down

0 comments on commit 3cfaba9

Please sign in to comment.