Fix linters

This commit is contained in:
9seconds
2018-06-19 10:22:31 +03:00
parent daca606058
commit b0292e4ed9
10 changed files with 17 additions and 73 deletions
+2
View File
@@ -48,6 +48,8 @@ func (c *CtxReadWriteCloser) Close() error {
return c.conn.Close()
}
// NewCtxRWC returns ReadWriteCloser which respects given context,
// cancellation etc.
func NewCtxRWC(ctx context.Context, cancel context.CancelFunc, conn io.ReadWriteCloser) io.ReadWriteCloser {
return &CtxReadWriteCloser{
conn: conn,