Fix missing deprecation tag (#2605)

Co-authored-by: Eric McDonald <librick@users.noreply.github.com>
This commit is contained in:
Eric
2023-10-16 02:38:10 -04:00
committed by GitHub
parent 17a464978a
commit 01886871a4

View File

@@ -579,6 +579,7 @@ func PrometheusRegisterer(reg prometheus.Registerer) Option {
// DialRanker configures libp2p to use d as the dial ranker. To enable smart
// dialing use `swarm.DefaultDialRanker`. use `swarm.NoDelayDialRanker` to
// disable smart dialing.
//
// Deprecated: use SwarmOpts(swarm.WithDialRanker(d)) instead
func DialRanker(d network.DialRanker) Option {
return func(cfg *Config) error {