···200200201201// This method updates the "local" account status (as opposed to "upstream" status, eg at the account's PDS).
202202//
203203-// If the `emitEvent` flag is set true, a `#account` event is broadcase. This should be used for account-level takedowns.
203203+// If the `emitEvent` flag is set true, a `#account` event is broadcast. This should be used for account-level takedowns.
204204func (r *Relay) UpdateAccountLocalStatus(ctx context.Context, did syntax.DID, status models.AccountStatus, emitEvent bool) error {
205205 acc, err := r.GetAccount(ctx, did)
206206 if err != nil {
+1-1
cmd/relay/relay/host.go
···153153 if err != nil {
154154 return "", false, fmt.Errorf("not a public hostname")
155155 }
156156- // lower-case in reponse
156156+ // lower-case in response
157157 return h.Normalize().String(), noSSL, nil
158158}
159159
+1-1
cmd/relay/relay/slurper.go
···29293030// `Slurper` is the sub-system of the relay which manages active websocket firehose connections to upstream hosts (eg, PDS instances).
3131//
3232-// It configures rate-limits, tracks cursors, and retries connections. It passes recieved messages on to the main relay via a callback function. `Slurper` does not talk to the database directly, but does have some callback to persist host state (cursors and hosting status for some error conditions).
3232+// It configures rate-limits, tracks cursors, and retries connections. It passes received messages on to the main relay via a callback function. `Slurper` does not talk to the database directly, but does have some callback to persist host state (cursors and hosting status for some error conditions).
3333type Slurper struct {
3434 processCallback ProcessMessageFunc
3535 Config *SlurperConfig
+1-1
cmd/relay/relay/verify.go
···178178 //logger := r.Logger.With("host", hostname, "did", evt.Did, "rev", evt.Rev)
179179180180 if len(evt.Blocks) > MaxMessageBlocksBytes {
181181- return nil, fmt.Errorf("blocks size (%d bytes) exeeds protocol limit", len(evt.Blocks))
181181+ return nil, fmt.Errorf("blocks size (%d bytes) exceeds protocol limit", len(evt.Blocks))
182182 }
183183184184 // even in lenient/legacy mode (eg, tooBig), we need to verify commit