routing+routerrpc: rename max_shards to max_parts

Don't introduce a new term and align with the P in MPP.
This commit is contained in:
Joost Jager
2020-04-22 09:19:11 +02:00
parent 8d7e07d96b
commit f6b2410011
11 changed files with 169 additions and 169 deletions

View File

@@ -58,8 +58,8 @@ var (
"displayed. Only valid in combination with --json.",
}
maxShardsFlag = cli.UintFlag{
Name: "max_shards",
maxPartsFlag = cli.UintFlag{
Name: "max_parts",
Usage: "the maximum number of partial payments that may be " +
"used",
Value: 1,
@@ -107,7 +107,7 @@ func paymentFlags() []cli.Flag {
Name: "allow_self_payment",
Usage: "allow sending a circular payment to self",
},
dataFlag, inflightUpdatesFlag, maxShardsFlag, jsonFlag,
dataFlag, inflightUpdatesFlag, maxPartsFlag, jsonFlag,
}
}
@@ -337,7 +337,7 @@ func sendPaymentRequest(ctx *cli.Context,
req.AllowSelfPayment = ctx.Bool("allow_self_payment")
req.MaxShards = uint32(ctx.Uint(maxShardsFlag.Name))
req.MaxParts = uint32(ctx.Uint(maxPartsFlag.Name))
// Parse custom data records.
data := ctx.String(dataFlag.Name)