mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-09-26 20:21: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
|
||||
// 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 {
|
||||
|
Reference in New Issue
Block a user