Skip to content

Commit

Permalink
lextool: remove unimplemented firehose validator
Browse files Browse the repository at this point in the history
Will add this to 'goat' instead
  • Loading branch information
bnewbold committed Dec 24, 2024
1 parent 12f4572 commit 7277f09
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
5 changes: 0 additions & 5 deletions atproto/lexicon/cmd/lextool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ func main() {
Usage: "fetch from network, validate against catalog",
Action: runValidateRecord,
},
&cli.Command{
Name: "validate-firehose",
Usage: "subscribe to a firehose, validate every known record against catalog",
Action: runValidateFirehose,
},
&cli.Command{
Name: "resolve",
Usage: "resolves an NSID to a lexicon schema",
Expand Down
15 changes: 0 additions & 15 deletions atproto/lexicon/cmd/lextool/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,3 @@ func runValidateRecord(cctx *cli.Context) error {
fmt.Println("success!")
return nil
}

func runValidateFirehose(cctx *cli.Context) error {
p := cctx.Args().First()
if p == "" {
return fmt.Errorf("need to provide directory path as an argument")
}

cat := lexicon.NewBaseCatalog()
err := cat.LoadDirectory(p)
if err != nil {
return err
}

return fmt.Errorf("UNIMPLEMENTED")
}

0 comments on commit 7277f09

Please sign in to comment.