From 103feac32ed8a3e457c5ade717fe0ab13acc1858 Mon Sep 17 00:00:00 2001 From: tanlang Date: Fri, 29 Dec 2023 16:26:06 +0800 Subject: [PATCH] chore: ignore some unused --- venus-shared/blockstore/splitstore/splitstore.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/venus-shared/blockstore/splitstore/splitstore.go b/venus-shared/blockstore/splitstore/splitstore.go index 072ec93f5a..d831aeb420 100644 --- a/venus-shared/blockstore/splitstore/splitstore.go +++ b/venus-shared/blockstore/splitstore/splitstore.go @@ -487,7 +487,7 @@ func (ss *Splitstore) getCbor(ctx context.Context, c cid.Cid, out interface{}) e return cst.Get(ctx, c, out) } -func (ss *Splitstore) getTipsetKey(ctx context.Context, c cid.Cid) (*types.TipSetKey, error) { +func (ss *Splitstore) getTipsetKey(ctx context.Context, c cid.Cid) (*types.TipSetKey, error) { // nolint:unused var tsk types.TipSetKey err := ss.getCbor(ctx, c, &tsk) if err != nil { @@ -520,7 +520,7 @@ func (ss *Splitstore) getTipset(ctx context.Context, key *types.TipSetKey) (*typ return ts, nil } -func (ss *Splitstore) getBlock(ctx context.Context, c cid.Cid) (*types.BlockHeader, error) { +func (ss *Splitstore) getBlock(ctx context.Context, c cid.Cid) (*types.BlockHeader, error) { // nolint:unused if !c.Defined() { return nil, fmt.Errorf("get block: block cid is undefined") } @@ -563,7 +563,7 @@ func (ss *Splitstore) isRollback() bool { return ss.rollbackFlag } -func (ss *Splitstore) currentHead() cid.Cid { +func (ss *Splitstore) currentHead() cid.Cid { // nolint:unused ss.mux.RLock() defer ss.mux.RUnlock() return ss.headTipsetKey