From 81e3b714a2b55011dbc2c29e0b8a4c4e87894422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 30 Apr 2020 12:51:19 +0200 Subject: [PATCH] gofmt --- chain/vm/runtime_test.go | 2 +- cmd/lotus-shed/bitfield.go | 2 +- node/modules/ipfsclient.go | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/chain/vm/runtime_test.go b/chain/vm/runtime_test.go index d6b2429e5..b5c75c177 100644 --- a/chain/vm/runtime_test.go +++ b/chain/vm/runtime_test.go @@ -13,7 +13,7 @@ import ( "github.com/filecoin-project/lotus/chain/actors/aerrors" ) -type NotAVeryGoodMarshaler struct {} +type NotAVeryGoodMarshaler struct{} func (*NotAVeryGoodMarshaler) MarshalCBOR(writer io.Writer) error { return xerrors.Errorf("no") diff --git a/cmd/lotus-shed/bitfield.go b/cmd/lotus-shed/bitfield.go index 44d79fcd6..e1b6d03a6 100644 --- a/cmd/lotus-shed/bitfield.go +++ b/cmd/lotus-shed/bitfield.go @@ -151,7 +151,7 @@ var bitFieldStatCmd = &cli.Command{ return xerrors.Errorf("getting run iterator: %w", err) } - fmt.Printf("Raw length: %d bits (%d bytes)\n", len(dec) * 8, len(dec)) + fmt.Printf("Raw length: %d bits (%d bytes)\n", len(dec)*8, len(dec)) var ones, zeros, oneRuns, zeroRuns, invalid uint64 diff --git a/node/modules/ipfsclient.go b/node/modules/ipfsclient.go index 94f2d71a1..8898e4cd1 100644 --- a/node/modules/ipfsclient.go +++ b/node/modules/ipfsclient.go @@ -20,7 +20,7 @@ func IpfsClientBlockstore(mctx helpers.MetricsCtx, lc fx.Lifecycle, fstore dtype } return bufbstore.NewTieredBstore( - ipfsbs, - blockstore.NewIdStore((*filestore.Filestore)(fstore)), - ), nil -} \ No newline at end of file + ipfsbs, + blockstore.NewIdStore((*filestore.Filestore)(fstore)), + ), nil +}