diff --git a/routing/http/client/client.go b/routing/http/client/client.go index d12a789ae..668e05d38 100644 --- a/routing/http/client/client.go +++ b/routing/http/client/client.go @@ -339,9 +339,9 @@ func (c *Client) FindProviders(ctx context.Context, key cid.Cid) (providers iter return &measuringIter[iter.Result[types.Record]]{Iter: it, ctx: ctx, m: m}, nil } -// Deprecated: protocol-agnostic provide is being worked on in [IPIP-378]: +// Deprecated: historic API from [IPIP-526], may be removed in a future version. // -// [IPIP-378]: https://github.com/ipfs/specs/pull/378 +// [IPIP-526]: https://specs.ipfs.tech/ipips/ipip-0526/ func (c *Client) ProvideBitswap(ctx context.Context, keys []cid.Cid, ttl time.Duration) (time.Duration, error) { if c.identity == nil { return 0, errors.New("cannot provide Bitswap records without an identity") diff --git a/routing/http/server/server.go b/routing/http/server/server.go index ceb75b819..4d7877629 100644 --- a/routing/http/server/server.go +++ b/routing/http/server/server.go @@ -71,9 +71,9 @@ type DelegatedRouter interface { // Limit indicates the maximum amount of results to return; 0 means unbounded. FindProviders(ctx context.Context, cid cid.Cid, limit int) (iter.ResultIter[types.Record], error) - // Deprecated: protocol-agnostic provide is being worked on in [IPIP-378]: + // Deprecated: historic API from [IPIP-526], may be removed in a future version. // - // [IPIP-378]: https://github.com/ipfs/specs/pull/378 + // [IPIP-526]: https://specs.ipfs.tech/ipips/ipip-0526/ ProvideBitswap(ctx context.Context, req *BitswapWriteProvideRequest) (time.Duration, error) // FindPeers searches for peers who have the provided [peer.ID]. @@ -95,9 +95,9 @@ type DelegatedRouter interface { // Deprecated: use DelegatedRouter. ContentRouter will be removed in a future version. type ContentRouter = DelegatedRouter -// Deprecated: protocol-agnostic provide is being worked on in [IPIP-378]: +// Deprecated: historic API from [IPIP-526], may be removed in a future version. // -// [IPIP-378]: https://github.com/ipfs/specs/pull/378 +// [IPIP-526]: https://specs.ipfs.tech/ipips/ipip-0526/ type BitswapWriteProvideRequest struct { Keys []cid.Cid Timestamp time.Time @@ -106,9 +106,9 @@ type BitswapWriteProvideRequest struct { Addrs []multiaddr.Multiaddr } -// Deprecated: protocol-agnostic provide is being worked on in [IPIP-378]: +// Deprecated: historic API from [IPIP-526], may be removed in a future version. // -// [IPIP-378]: https://github.com/ipfs/specs/pull/378 +// [IPIP-526]: https://specs.ipfs.tech/ipips/ipip-0526/ type WriteProvideRequest struct { Protocol string Schema string diff --git a/routing/http/types/json/requests.go b/routing/http/types/json/requests.go index c0bbfafdf..fe72ad648 100644 --- a/routing/http/types/json/requests.go +++ b/routing/http/types/json/requests.go @@ -6,9 +6,9 @@ import ( "github.com/ipfs/boxo/routing/http/types" ) -// Deprecated: protocol-agnostic provide is being worked on in [IPIP-378]: +// Deprecated: historic API from [IPIP-526], may be removed in a future version. // -// [IPIP-378]: https://github.com/ipfs/specs/pull/378 +// [IPIP-526]: https://specs.ipfs.tech/ipips/ipip-0526/ type WriteProvidersRequest struct { Providers []types.Record } diff --git a/routing/http/types/json/responses.go b/routing/http/types/json/responses.go index 7ce92965b..47c65a8b9 100644 --- a/routing/http/types/json/responses.go +++ b/routing/http/types/json/responses.go @@ -68,9 +68,9 @@ func (r *RecordsArray) UnmarshalJSON(b []byte) error { return nil } -// Deprecated: protocol-agnostic provide is being worked on in [IPIP-378]: +// Deprecated: historic API from [IPIP-526], may be removed in a future version. // -// [IPIP-378]: https://github.com/ipfs/specs/pull/378 +// [IPIP-526]: https://specs.ipfs.tech/ipips/ipip-0526/ type WriteProvidersResponse struct { ProvideResults []types.Record } diff --git a/routing/http/types/record_bitswap.go b/routing/http/types/record_bitswap.go index bf749e515..ea9d6a859 100644 --- a/routing/http/types/record_bitswap.go +++ b/routing/http/types/record_bitswap.go @@ -35,9 +35,9 @@ func (br *BitswapRecord) GetSchema() string { var _ Record = &WriteBitswapRecord{} -// Deprecated: protocol-agnostic provide is being worked on in [IPIP-378]: +// Deprecated: historic API from [IPIP-526], may be removed in a future version. // -// [IPIP-378]: https://github.com/ipfs/specs/pull/378 +// [IPIP-526]: https://specs.ipfs.tech/ipips/ipip-0526/ type WriteBitswapRecord struct { Schema string Protocol string @@ -170,9 +170,9 @@ func (p *WriteBitswapRecord) Verify() error { var _ Record = &WriteBitswapRecordResponse{} -// Deprecated: protocol-agnostic provide is being worked on in [IPIP-378]: +// Deprecated: historic API from [IPIP-526], may be removed in a future version. // -// [IPIP-378]: https://github.com/ipfs/specs/pull/378 +// [IPIP-526]: https://specs.ipfs.tech/ipips/ipip-0526/ type WriteBitswapRecordResponse struct { Schema string Protocol string