Rename opt to avoid stutter

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2023-11-01 10:39:54 -07:00
parent 261e01c2ac
commit b85df264ef
5 changed files with 14 additions and 14 deletions

View File

@@ -82,7 +82,7 @@ func init() {
// New returns a new containerd client that is connected to the containerd
// instance provided by address
func New(address string, opts ...ClientOpt) (*Client, error) {
func New(address string, opts ...Opt) (*Client, error) {
var copts clientOpts
for _, o := range opts {
if err := o(&copts); err != nil {
@@ -174,7 +174,7 @@ func New(address string, opts ...ClientOpt) (*Client, error) {
// NewWithConn returns a new containerd client that is connected to the containerd
// instance provided by the connection
func NewWithConn(conn *grpc.ClientConn, opts ...ClientOpt) (*Client, error) {
func NewWithConn(conn *grpc.ClientConn, opts ...Opt) (*Client, error) {
var copts clientOpts
for _, o := range opts {
if err := o(&copts); err != nil {