From 4a402da650a29fcdee6c4d4e00459c759e06a84e Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Thu, 22 Jul 2021 22:10:44 +0200 Subject: [PATCH] use the standard comment to deprecate basichost.Option and basichost.New --- p2p/host/basic/basic_host.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2p/host/basic/basic_host.go b/p2p/host/basic/basic_host.go index 90ae12db0a..ce8a440eee 100644 --- a/p2p/host/basic/basic_host.go +++ b/p2p/host/basic/basic_host.go @@ -58,7 +58,7 @@ type AddrsFactory func([]ma.Multiaddr) []ma.Multiaddr // Option is a type used to pass in options to the host. // -// Deprecated in favor of HostOpts and NewHost. +// Deprecated: use HostOpts instead. type Option int // NATPortMap makes the host attempt to open port-mapping in NAT devices @@ -67,7 +67,7 @@ type Option int // port mappings periodically. The NATed addresses are included in the // Host's Addrs() list. // -// This option is deprecated in favor of HostOpts and NewHost. +// Deprecated: use HostOpts instead. const NATPortMap Option = iota // BasicHost is the basic implementation of the host.Host interface. This @@ -336,7 +336,7 @@ func (h *BasicHost) updateLocalIpAddr() { // * connmgr.ConnManager // * madns.Resolver // -// This function is deprecated in favor of NewHost and HostOpts. +// Deprecated: use NewHost instead. func New(net network.Network, opts ...interface{}) *BasicHost { hostopts := &HostOpts{}