Skip to content

Commit

Permalink
codespell (bluesky-social#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold authored Feb 18, 2025
2 parents 74177ef + 4b5882a commit 532f3c7
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion atproto/lexicon/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

// Interface type for a resolver or container of lexicon schemas, and methods for validating generic data against those schemas.
type Catalog interface {
// Looks up a schema refrence (NSID string with optional fragment) to a Schema object.
// Looks up a schema reference (NSID string with optional fragment) to a Schema object.
Resolve(ref string) (*Schema, error)
}

Expand Down
2 changes: 1 addition & 1 deletion atproto/lexicon/lexicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (
StrictRecursiveValidation
)

// Combination of agument flags for less formal validation. Recommended for, eg, working with old/legacy data from 2023.
// Combination of argument flags for less formal validation. Recommended for, eg, working with old/legacy data from 2023.
var LenientMode ValidateFlags = AllowLegacyBlob | AllowLenientDatetime

// Represents a Lexicon schema definition
Expand Down
2 changes: 1 addition & 1 deletion atproto/lexicon/testdata/catalog/query.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"lexicon": 1,
"id": "example.lexicon.query",
"revision": 1,
"description": "exersizes many lexicon features for the query type",
"description": "exercizes many lexicon features for the query type",
"defs": {
"main": {
"type": "query",
Expand Down
2 changes: 1 addition & 1 deletion atproto/lexicon/testdata/catalog/record.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"lexicon": 1,
"id": "example.lexicon.record",
"revision": 1,
"description": "exersizes many lexicon features for the record type",
"description": "exercizes many lexicon features for the record type",
"defs": {
"main": {
"type": "record",
Expand Down
2 changes: 1 addition & 1 deletion atproto/repo/mst/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NodeDataFromCBOR(r io.Reader) (*NodeData, error) {
return &nd, nil
}

// Transforms `Node` stuct to `NodeData`, which is the format used for encoding to CBOR.
// Transforms `Node` struct to `NodeData`, which is the format used for encoding to CBOR.
//
// Will panic if any entries are missing a CID (must compute those first)
func (n *Node) NodeData() NodeData {
Expand Down
4 changes: 2 additions & 2 deletions cmd/collectiondir/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ If multiple collections are specified, the result stream is not guaranteed to be

`listCollections` returns JSON with a map of collection name to approximate number of dids implementing it.
With no `c` parameter it returns all known collections with cursor paging.
With up to 20 repeated `c` paramaters it returns only those collections (no paging).
With up to 20 repeated `c` parameters it returns only those collections (no paging).
It may be the cached result of a computation, up to several minutes out of date.
```json
{"collections":{"app.bsky.feed.post": 123456789, "some collection": 42},
Expand All @@ -53,4 +53,4 @@ e.g. A new service starts consuming the firehose for events it wants in collecti
it then calls the collection directory for a list of repos which may have already created data in this collection,
and does `getRepo` calls to those repo's PDSes to get prior data.
By the time it is done paging forward through the collection directory results and getting those repos,
it will have backfilled data and new data it has collected live off the firehose.
it will have backfilled data and new data it has collected live off the firehose.
2 changes: 1 addition & 1 deletion cmd/collectiondir/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ func (cs *collectionServer) getDidsForCollection(c echo.Context) error {
}

// return cached collection stats if they're fresh
// return new collection stats if they can be calculated quicly
// return new collection stats if they can be calculated quickly
// return stale cached collection stats if new stats take too long
// just wait for fresh stats if there are no cached stats
// stalenessAllowed is how old stats can be before we try to recalculate them, 0=default of 5 minutes
Expand Down

0 comments on commit 532f3c7

Please sign in to comment.