diff --git a/atproto/lexicon/catalog.go b/atproto/lexicon/catalog.go index 69c458004..b5e996493 100644 --- a/atproto/lexicon/catalog.go +++ b/atproto/lexicon/catalog.go @@ -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) } diff --git a/atproto/lexicon/lexicon.go b/atproto/lexicon/lexicon.go index df0909da8..acefb90d6 100644 --- a/atproto/lexicon/lexicon.go +++ b/atproto/lexicon/lexicon.go @@ -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 diff --git a/atproto/lexicon/testdata/catalog/query.json b/atproto/lexicon/testdata/catalog/query.json index f3aa59217..4000fe41a 100644 --- a/atproto/lexicon/testdata/catalog/query.json +++ b/atproto/lexicon/testdata/catalog/query.json @@ -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", diff --git a/atproto/lexicon/testdata/catalog/record.json b/atproto/lexicon/testdata/catalog/record.json index 4c0496291..164e7eedc 100644 --- a/atproto/lexicon/testdata/catalog/record.json +++ b/atproto/lexicon/testdata/catalog/record.json @@ -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", diff --git a/atproto/repo/mst/encoding.go b/atproto/repo/mst/encoding.go index 7b314e198..e640f2d4d 100644 --- a/atproto/repo/mst/encoding.go +++ b/atproto/repo/mst/encoding.go @@ -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 { diff --git a/cmd/collectiondir/README.md b/cmd/collectiondir/README.md index 5136bdafb..a4143d2e6 100644 --- a/cmd/collectiondir/README.md +++ b/cmd/collectiondir/README.md @@ -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}, @@ -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. \ No newline at end of file +it will have backfilled data and new data it has collected live off the firehose. diff --git a/cmd/collectiondir/serve.go b/cmd/collectiondir/serve.go index c74224c8f..66a72466e 100644 --- a/cmd/collectiondir/serve.go +++ b/cmd/collectiondir/serve.go @@ -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