Skip to content

Commit

Permalink
wiring
Browse files Browse the repository at this point in the history
  • Loading branch information
anjor committed Aug 19, 2024
1 parent c01e84a commit 76ea602
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
26 changes: 13 additions & 13 deletions cmd-x-index-cid2subsetoffset.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,19 @@ func newCmd_Index_cid2subsetOffset() *cli.Command {
panic(err)
}
klog.Info("Index created")
// if verify {
// klog.Infof("Verifying index located at %s", indexFilepath)
// startedAt := time.Now()
// defer func() {
// klog.Infof("Finished in %s", time.Since(startedAt))
// }()
// err := VerifyIndex_cid2subsetOffset(context.TODO(), indexFilepath)
// if err != nil {
// return cli.Exit(err, 1)
// }
// klog.Info("Index verified")
// return nil
// }
if verify {
klog.Infof("Verifying index located at %s", indexFilepath)
startedAt := time.Now()
defer func() {
klog.Infof("Finished in %s", time.Since(startedAt))
}()
err := VerifyIndex_cid2subsetOffset(context.TODO(), carPaths, indexFilepath)
if err != nil {
return cli.Exit(err, 1)
}
klog.Info("Index verified")
return nil
}
}
return nil
},
Expand Down
1 change: 1 addition & 0 deletions cmd-x-index.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func newCmd_Index() *cli.Command {
Flags: []cli.Flag{},
Subcommands: []*cli.Command{
newCmd_Index_cid2offset(),
newCmd_Index_cid2subsetOffset(),
newCmd_Index_slot2cid(),
newCmd_Index_sig2cid(),
newCmd_Index_all(), // NOTE: not actually all.
Expand Down

0 comments on commit 76ea602

Please sign in to comment.