Skip to content

Commit 5a82c8d

Browse files
committed
client/rpc!: remove deprecated DHT commands
1 parent fcbdf39 commit 5a82c8d

File tree

7 files changed

+5
-108
lines changed

7 files changed

+5
-108
lines changed

client/rpc/api.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,6 @@ func (api *HttpApi) Object() iface.ObjectAPI {
227227
return (*ObjectAPI)(api)
228228
}
229229

230-
// nolint deprecated
231-
// Deprecated: use [HttpApi.Routing] instead.
232-
func (api *HttpApi) Dht() iface.DhtAPI {
233-
return (*DhtAPI)(api)
234-
}
235-
236230
func (api *HttpApi) Swarm() iface.SwarmAPI {
237231
return (*SwarmAPI)(api)
238232
}

client/rpc/dht.go

Lines changed: 0 additions & 33 deletions
This file was deleted.

core/coreapi/coreapi.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,6 @@ func (api *CoreAPI) Pin() coreiface.PinAPI {
130130
return (*PinAPI)(api)
131131
}
132132

133-
// nolint deprecated
134-
// Deprecated: use [CoreAPI.Routing] instead.
135-
func (api *CoreAPI) Dht() coreiface.DhtAPI {
136-
return (*DhtAPI)(api)
137-
}
138-
139133
// Swarm returns the SwarmAPI interface implementation backed by the go-ipfs node
140134
func (api *CoreAPI) Swarm() coreiface.SwarmAPI {
141135
return (*SwarmAPI)(api)

core/coreapi/dht.go

Lines changed: 0 additions & 34 deletions
This file was deleted.

core/coreiface/coreapi.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ type CoreAPI interface {
3434
// Object returns an implementation of Object API
3535
Object() ObjectAPI
3636

37-
// nolint deprecated
38-
// Deprecated: use [Routing] instead.
39-
Dht() DhtAPI
40-
4137
// Swarm returns an implementation of Swarm API
4238
Swarm() SwarmAPI
4339

core/coreiface/dht.go

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/changelogs/v0.28.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@
66

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

1213
### Overview
1314

1415
### 🔦 Highlights
1516

17+
#### RPC client: removed deprecated DHT API
18+
19+
The deprecated DHT API commands in the RPC client have been removed. Instead, use the Routing API.
20+
1621
### 📝 Changelog
1722

1823
### 👨‍👩‍👧‍👦 Contributors

0 commit comments

Comments
 (0)