Moved WithSession with session token got from pool.Connection
to the top of returned slice because it overlaps WithSession in
'option' parameter
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
pkg/pool/pool.go:86:32 staticcheck SA1019: token.SessionToken is deprecated: use session.Token instead
pkg/pool/pool.go:92:16 staticcheck SA1019: token.SessionToken is deprecated: use session.Token instead
pkg/pool/pool.go:151:46 staticcheck SA1019: token.SessionToken is deprecated: use session.Token instead
Signed-off-by: Roman Khimov <roman@nspcc.ru>
We don't really need Credentials (it's all about private key) and ClientPlant
(it's a pool). NewEphemeralKey moved temporarily to pool.
Signed-off-by: Roman Khimov <roman@nspcc.ru>
Renamed PoolBuilderOptions to BuilderOptions and PoolBuilder to Builder
because usages of them with prefix pool.* in other packages stutter.
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>