Skip to content

client/rpc!: remove deprecated DHT commands #10354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions client/rpc/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,6 @@ func (api *HttpApi) Object() iface.ObjectAPI {
return (*ObjectAPI)(api)
}

// nolint deprecated
// Deprecated: use [HttpApi.Routing] instead.
func (api *HttpApi) Dht() iface.DhtAPI {
return (*DhtAPI)(api)
}

func (api *HttpApi) Swarm() iface.SwarmAPI {
return (*SwarmAPI)(api)
}
Expand Down
33 changes: 0 additions & 33 deletions client/rpc/dht.go

This file was deleted.

6 changes: 0 additions & 6 deletions core/coreapi/coreapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,6 @@ func (api *CoreAPI) Pin() coreiface.PinAPI {
return (*PinAPI)(api)
}

// nolint deprecated
// Deprecated: use [CoreAPI.Routing] instead.
func (api *CoreAPI) Dht() coreiface.DhtAPI {
return (*DhtAPI)(api)
}

// Swarm returns the SwarmAPI interface implementation backed by the go-ipfs node
func (api *CoreAPI) Swarm() coreiface.SwarmAPI {
return (*SwarmAPI)(api)
Expand Down
34 changes: 0 additions & 34 deletions core/coreapi/dht.go

This file was deleted.

4 changes: 0 additions & 4 deletions core/coreiface/coreapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ type CoreAPI interface {
// Object returns an implementation of Object API
Object() ObjectAPI

// nolint deprecated
// Deprecated: use [Routing] instead.
Dht() DhtAPI

// Swarm returns an implementation of Swarm API
Swarm() SwarmAPI

Expand Down
25 changes: 0 additions & 25 deletions core/coreiface/dht.go

This file was deleted.

5 changes: 5 additions & 0 deletions docs/changelogs/v0.28.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@

- [Overview](#overview)
- [🔦 Highlights](#-highlights)
- [RPC client: removed deprecated DHT API](#rpc-client-removed-deprecated-dht-api)
- [📝 Changelog](#-changelog)
- [👨‍👩‍👧‍👦 Contributors](#-contributors)

### Overview

### 🔦 Highlights

#### RPC client: removed deprecated DHT API

The deprecated DHT API commands in the RPC client have been removed. Instead, use the Routing API.

### 📝 Changelog

### 👨‍👩‍👧‍👦 Contributors