Skip to content

Commit

Permalink
client/rpc!: remove deprecated DHT commands
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Mar 5, 2024
1 parent d60b7cd commit d77a9e6
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 108 deletions.
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

0 comments on commit d77a9e6

Please sign in to comment.