mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-04 07:48:00 +08:00
fix(rpc): restore and reprecate bitswap reprovide (#10699)
Some checks failed
CodeQL / codeql (push) Has been cancelled
Docker Build / docker-build (push) Has been cancelled
Gateway Conformance / gateway-conformance (push) Has been cancelled
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Has been cancelled
Go Build / go-build (push) Has been cancelled
Go Check / go-check (push) Has been cancelled
Go Lint / go-lint (push) Has been cancelled
Go Test / go-test (push) Has been cancelled
Interop / interop-prep (push) Has been cancelled
Sharness / sharness-test (push) Has been cancelled
Spell Check / spellcheck (push) Has been cancelled
Interop / helia-interop (push) Has been cancelled
Interop / ipfs-webui (push) Has been cancelled
Some checks failed
CodeQL / codeql (push) Has been cancelled
Docker Build / docker-build (push) Has been cancelled
Gateway Conformance / gateway-conformance (push) Has been cancelled
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Has been cancelled
Go Build / go-build (push) Has been cancelled
Go Check / go-check (push) Has been cancelled
Go Lint / go-lint (push) Has been cancelled
Go Test / go-test (push) Has been cancelled
Interop / interop-prep (push) Has been cancelled
Sharness / sharness-test (push) Has been cancelled
Spell Check / spellcheck (push) Has been cancelled
Interop / helia-interop (push) Has been cancelled
Interop / ipfs-webui (push) Has been cancelled
https://github.com/ipfs/kubo/pull/10677 removed command without properly deprecating it first, this restores it and marks as deprecated we can remove it after at least 1 release with deprecation being announced
This commit is contained in:
parent
b387530d07
commit
e77a484aa8
@ -21,9 +21,10 @@ var BitswapCmd = &cmds.Command{
|
||||
},
|
||||
|
||||
Subcommands: map[string]*cmds.Command{
|
||||
"stat": bitswapStatCmd,
|
||||
"wantlist": showWantlistCmd,
|
||||
"ledger": ledgerCmd,
|
||||
"stat": bitswapStatCmd,
|
||||
"wantlist": showWantlistCmd,
|
||||
"ledger": ledgerCmd,
|
||||
"reprovide": deprecatedBitswapReprovideCmd,
|
||||
},
|
||||
}
|
||||
|
||||
@ -31,6 +32,17 @@ const (
|
||||
peerOptionName = "peer"
|
||||
)
|
||||
|
||||
var deprecatedBitswapReprovideCmd = &cmds.Command{
|
||||
Status: cmds.Deprecated,
|
||||
Helptext: cmds.HelpText{
|
||||
Tagline: "Deprecated command to announce to bitswap. Use 'ipfs routing reprovide' instead.",
|
||||
ShortDescription: `
|
||||
'ipfs bitswap reprovide' is a legacy plumbing command used to announce to DHT.
|
||||
Deprecated, use modern 'ipfs routing reprovide' instead.`,
|
||||
},
|
||||
Run: reprovideRoutingCmd.Run, // alias to routing reprovide to not break existing users
|
||||
}
|
||||
|
||||
var showWantlistCmd = &cmds.Command{
|
||||
Helptext: cmds.HelpText{
|
||||
Tagline: "Show blocks currently on the wantlist.",
|
||||
|
||||
@ -20,6 +20,7 @@ func TestCommands(t *testing.T) {
|
||||
"/add",
|
||||
"/bitswap",
|
||||
"/bitswap/ledger",
|
||||
"/bitswap/reprovide",
|
||||
"/bitswap/stat",
|
||||
"/bitswap/wantlist",
|
||||
"/block",
|
||||
|
||||
@ -6,28 +6,20 @@
|
||||
|
||||
- [Overview](#overview)
|
||||
- [🔦 Highlights](#-highlights)
|
||||
- [JSON config validation](#json-config-validation)
|
||||
- [Reprovide command moved to routing](#reprovide-command-moved-to-routing)
|
||||
- [Additional stats for Accelerated DHT Reprovides](#additional-stats-for-accelerated-dht-reprovides)
|
||||
- [📝 Changelog](#-changelog)
|
||||
- [RPC and CLI command changes](#rpc-and-cli-command-changes)
|
||||
- [Bitswap improvements from Boxo](#bitswap-improvements-from-boxo)
|
||||
- [📝 Changelog](#-changelog)
|
||||
- [👨👩👧👦 Contributors](#-contributors)
|
||||
|
||||
### Overview
|
||||
|
||||
### 🔦 Highlights
|
||||
|
||||
#### JSON config validation
|
||||
#### RPC and CLI command changes
|
||||
|
||||
`ipfs config` is now validating json fields ([#10679](https://github.com/ipfs/kubo/pull/10679)).
|
||||
|
||||
#### Reprovide command moved to routing
|
||||
|
||||
Moved the `bitswap reprovide` command to `routing reprovide`. ([#10677](https://github.com/ipfs/kubo/pull/10677))
|
||||
|
||||
#### Additional stats for Accelerated DHT Reprovides
|
||||
|
||||
The `stats reprovide` command now shows additional stats for the DHT Accelerated Client, indicating the last and next `reprovide` times. ([#10677](https://github.com/ipfs/kubo/pull/10677))
|
||||
- `ipfs config` is now validating json fields ([#10679](https://github.com/ipfs/kubo/pull/10679)).
|
||||
- Deprecated the `bitswap reprovide` command. Make sure to switch to modern `routing reprovide`. ([#10677](https://github.com/ipfs/kubo/pull/10677))
|
||||
- The `stats reprovide` command now shows additional stats for [`Routing.AcceleratedDHTClient`](https://github.com/ipfs/kubo/blob/master/docs/config.md#routingaccelerateddhtclient), indicating the last and next `reprovide` times. ([#10677](https://github.com/ipfs/kubo/pull/10677))
|
||||
|
||||
#### Bitswap improvements from Boxo
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user