add debug log skeleton

This commit is contained in:
vyzo
2021-07-04 18:38:28 +03:00
parent 0390285c4e
commit fc247e4223
2 changed files with 72 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
package splitstore
import (
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/lotus/chain/types"
blocks "github.com/ipfs/go-block-format"
cid "github.com/ipfs/go-cid"
)
type debugLog struct {
}
func (d *debugLog) LogReadMiss(cid cid.Cid) {
if d == nil {
return
}
// TODO
}
func (d *debugLog) LogWrite(curTs *types.TipSet, blk blocks.Block, writeEpoch abi.ChainEpoch) {
if d == nil {
return
}
// TODO
}
func (d *debugLog) LogWriteMany(curTs *types.TipSet, blks []blocks.Block, writeEpoch abi.ChainEpoch) {
if d == nil {
return
}
// TODO
}
func (d *debugLog) LogMove(curTs *types.TipSet, cid cid.Cid, writeEpoch abi.ChainEpoch) {
if d == nil {
return
}
// TODO
}
func (d *debugLog) Close() error {
if d == nil {
return nil
}
// TODO
return nil
}