this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix typos

+5 -5
+1 -1
cmd/relay/main.go
··· 56 56 &cli.StringFlag{ 57 57 Name: "log-level", 58 58 Usage: "log verbosity level (eg: warn, info, debug)", 59 - EnvVars: []string{"BLUEPAGES_LOG_LEVEL", "GO_LOG_LEVEL", "LOG_LEVEL"}, 59 + EnvVars: []string{"RELAY_LOG_LEVEL", "GO_LOG_LEVEL", "LOG_LEVEL"}, 60 60 }, 61 61 } 62 62 app.Commands = []*cli.Command{
+1 -1
cmd/relay/relay/account.go
··· 200 200 201 201 // This method updates the "local" account status (as opposed to "upstream" status, eg at the account's PDS). 202 202 // 203 - // If the `emitEvent` flag is set true, a `#account` event is broadcase. This should be used for account-level takedowns. 203 + // If the `emitEvent` flag is set true, a `#account` event is broadcast. This should be used for account-level takedowns. 204 204 func (r *Relay) UpdateAccountLocalStatus(ctx context.Context, did syntax.DID, status models.AccountStatus, emitEvent bool) error { 205 205 acc, err := r.GetAccount(ctx, did) 206 206 if err != nil {
+1 -1
cmd/relay/relay/host.go
··· 153 153 if err != nil { 154 154 return "", false, fmt.Errorf("not a public hostname") 155 155 } 156 - // lower-case in reponse 156 + // lower-case in response 157 157 return h.Normalize().String(), noSSL, nil 158 158 } 159 159
+1 -1
cmd/relay/relay/slurper.go
··· 29 29 30 30 // `Slurper` is the sub-system of the relay which manages active websocket firehose connections to upstream hosts (eg, PDS instances). 31 31 // 32 - // 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). 32 + // 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). 33 33 type Slurper struct { 34 34 processCallback ProcessMessageFunc 35 35 Config *SlurperConfig
+1 -1
cmd/relay/relay/verify.go
··· 178 178 //logger := r.Logger.With("host", hostname, "did", evt.Did, "rev", evt.Rev) 179 179 180 180 if len(evt.Blocks) > MaxMessageBlocksBytes { 181 - return nil, fmt.Errorf("blocks size (%d bytes) exeeds protocol limit", len(evt.Blocks)) 181 + return nil, fmt.Errorf("blocks size (%d bytes) exceeds protocol limit", len(evt.Blocks)) 182 182 } 183 183 184 184 // even in lenient/legacy mode (eg, tooBig), we need to verify commit