cmd/uplink: stop using transport.SetConnector
quic is still configurable based on the quic rollout environment variables in storj.io/common. this stops using a method removed in: https://review.dev.storj.io/c/storj/uplink/+/9815 Change-Id: Ibfe28cfb19e5672630970b9e2c8c6ac0c98d4822
This commit is contained in:
parent
5b0cada4b3
commit
d0408ee89b
@ -35,7 +35,6 @@ import (
|
||||
type external struct {
|
||||
interactive bool // controls if interactive input is allowed
|
||||
analytics *bool // enables sending analytics
|
||||
quic bool // if set, use the quic transport
|
||||
|
||||
dirs struct {
|
||||
loaded bool // true if Setup has been called
|
||||
@ -87,12 +86,6 @@ func (ex *external) Setup(f clingy.Flags) {
|
||||
clingy.Advanced,
|
||||
).(bool)
|
||||
|
||||
ex.quic = f.Flag(
|
||||
"quic", "If set, uses the quic transport", false,
|
||||
clingy.Transform(strconv.ParseBool), clingy.Boolean,
|
||||
clingy.Advanced,
|
||||
).(bool)
|
||||
|
||||
ex.dirs.current = f.Flag(
|
||||
"config-dir", "Directory that stores the configuration",
|
||||
appDir(false, defaultUplinkSubdir()...),
|
||||
|
@ -6,7 +6,6 @@ package main
|
||||
import (
|
||||
"context"
|
||||
|
||||
"storj.io/common/rpc"
|
||||
"storj.io/common/rpc/rpcpool"
|
||||
"storj.io/storj/cmd/uplink/ulext"
|
||||
"storj.io/storj/cmd/uplink/ulfs"
|
||||
@ -43,10 +42,6 @@ func (ex *external) OpenProject(ctx context.Context, accessName string, options
|
||||
UserAgent: uplinkCLIUserAgent,
|
||||
}
|
||||
|
||||
if ex.quic {
|
||||
transport.SetConnector(&config, rpc.NewHybridConnector())
|
||||
}
|
||||
|
||||
if opts.ConnectionPoolOptions != (rpcpool.Options{}) {
|
||||
if err := transport.SetConnectionPool(ctx, &config, rpcpool.New(opts.ConnectionPoolOptions)); err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user