From 97dd08258543317a623cf1f262cfe114210beebe Mon Sep 17 00:00:00 2001 From: zgfzgf <1901989065@qq.com> Date: Wed, 2 Dec 2020 08:41:58 +0800 Subject: [PATCH] change flag codec value raw to id and default value is id --- cmd/lotus-shed/cid.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/lotus-shed/cid.go b/cmd/lotus-shed/cid.go index 28b9802a1..d3bd2c3c9 100644 --- a/cmd/lotus-shed/cid.go +++ b/cmd/lotus-shed/cid.go @@ -32,8 +32,8 @@ var cidIdCmd = &cli.Command{ }, &cli.StringFlag{ Name: "codec", - Value: "abi", - Usage: "multicodec-packed content types: abi or raw", + Value: "id", + Usage: "multicodec-packed content types: abi or id", }, }, Action: func(cctx *cli.Context) error { @@ -66,7 +66,7 @@ var cidIdCmd = &cli.Command{ return xerrors.Errorf("cidBuilder abi: %w", err) } fmt.Println(aCid) - case "raw": + case "id": builder := cid.V1Builder{Codec: cid.Raw, MhType: mh.IDENTITY} rCid, err := builder.Sum(dec) if err != nil {