Skip to content

Commit

Permalink
chore: ignore some unused
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZexiao committed Dec 29, 2023
1 parent 4f67ef5 commit 103feac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions venus-shared/blockstore/splitstore/splitstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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")
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 103feac

Please sign in to comment.