Skip to content

Commit

Permalink
codespell cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Jan 19, 2023
1 parent 04aeaa5 commit 527f606
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions api/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/feed-proposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Some thoughts on a new format for feeds.

## Motivation
The interface for requesting and getting back feeds is something that I feel is really at the core of what bluesky offers. The user should be able to choose what feeds they subscribe to, feeds should be first class objects, they should be able to be efficiently generated and consumed, and they should be able to trustlessly come from anywhere.
Theres a lot of changes we *could* make to the current structure, but I don't want to stray too far from where we are at right now.
There are a lot of changes we *could* make to the current structure, but I don't want to stray too far from where we are at right now.


```go
Expand Down
2 changes: 1 addition & 1 deletion indexer/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func (ix *Indexer) addNewPostNotification(ctx context.Context, post *bsky.FeedPo
if post.Reply != nil {
replyto, err := ix.GetPost(ctx, post.Reply.Parent.Uri)
if err != nil {
log.Error("probably shouldnt error when processing a reply to a not-found post")
log.Error("probably shouldn't error when processing a reply to a not-found post")
return err
}

Expand Down
4 changes: 2 additions & 2 deletions lex/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ func WriteServerHandlers(w io.Writer, schemas []*Schema, pkg string, impmap map[

main, ok := s.Defs["main"]
if !ok {
return fmt.Errorf("schema %q doesnt have a main def", s.ID)
return fmt.Errorf("schema %q doesn't have a main def", s.ID)
}

if main.Type == "procedure" || main.Type == "query" {
Expand Down Expand Up @@ -642,7 +642,7 @@ func WriteXrpcServer(w io.Writer, schemas []*Schema, pkg string, impmap map[stri

main, ok := s.Defs["main"]
if !ok {
return fmt.Errorf("schema %q doesnt have a main def", s.ID)
return fmt.Errorf("schema %q doesn't have a main def", s.ID)
}

if main.Type == "procedure" || main.Type == "query" {
Expand Down
2 changes: 1 addition & 1 deletion mst/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mst/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func checkDiffSort(diffs []*DiffOp) {
}
}

// TODO: this code isnt great, should be rewritten on top of the baseline datastructures once functional and correct
// TODO: this code isn't great, should be rewritten on top of the baseline datastructures once functional and correct
func DiffTrees(ctx context.Context, bs blockstore.Blockstore, from, to cid.Cid) ([]*DiffOp, error) {
cst := cbor.NewCborStore(bs)

Expand Down
2 changes: 1 addition & 1 deletion mst/mst.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func (mst *MerkleSearchTree) replaceWithSplit(ctx context.Context, ix int, left
func checkTreeInvariant(ents []NodeEntry) {
for i := 0; i < len(ents)-1; i++ {
if ents[i].isTree() && ents[i+1].isTree() {
panic(fmt.Sprintf("two trees next to eachother! %d %d", i, i+1))
panic(fmt.Sprintf("two trees next to each other! %d %d", i, i+1))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion repo/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (s *Server) createCrossServerAuthToken(ctx context.Context, otherpds string
accessTok := makeToken(otherpds, "com.atproto.federation", time.Now().Add(24*time.Hour))

// setting this is a little weird,
// since the token isnt signed by this key, we dont have a way to validate...
// since the token isn't signed by this key, we dont have a way to validate...
accessTok.Set("pds", s.signingKey.DID())

rval := make([]byte, 10)
Expand Down

0 comments on commit 527f606

Please sign in to comment.