mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-09-27 12:32:26 +08:00
Fix missing deprecation tag (#2605)
Co-authored-by: Eric McDonald <librick@users.noreply.github.com>
This commit is contained in:
@@ -579,6 +579,7 @@ func PrometheusRegisterer(reg prometheus.Registerer) Option {
|
|||||||
// DialRanker configures libp2p to use d as the dial ranker. To enable smart
|
// DialRanker configures libp2p to use d as the dial ranker. To enable smart
|
||||||
// dialing use `swarm.DefaultDialRanker`. use `swarm.NoDelayDialRanker` to
|
// dialing use `swarm.DefaultDialRanker`. use `swarm.NoDelayDialRanker` to
|
||||||
// disable smart dialing.
|
// disable smart dialing.
|
||||||
|
//
|
||||||
// Deprecated: use SwarmOpts(swarm.WithDialRanker(d)) instead
|
// Deprecated: use SwarmOpts(swarm.WithDialRanker(d)) instead
|
||||||
func DialRanker(d network.DialRanker) Option {
|
func DialRanker(d network.DialRanker) Option {
|
||||||
return func(cfg *Config) error {
|
return func(cfg *Config) error {
|
||||||
|
Reference in New Issue
Block a user