lint: fix all major issues

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-02-14 16:16:01 +03:00
parent a11dd00174
commit 4ec4c277b7
65 changed files with 302 additions and 146 deletions

View File

@@ -18,6 +18,7 @@ type Pool interface {
Release(c Conn, status error) error
}
// Conn conn pool interface
type Conn interface {
// unique id of connection
Id() string
@@ -27,8 +28,9 @@ type Conn interface {
transport.Client
}
// NewPool creates new connection pool
func NewPool(opts ...Option) Pool {
var options Options
options := Options{}
for _, o := range opts {
o(&options)
}