Skip to content

Commit

Permalink
Merge pull request #106 from svix/jplatte/typos
Browse files Browse the repository at this point in the history
Fix typos found by crate-ci/typos
  • Loading branch information
svix-jplatte committed Jun 5, 2024
2 parents 1ca15d3 + c77cec8 commit 6c9b9be
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Typos

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
typos:
name: Check for typos
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@v1.22.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ svix login # interactively configure your Svix API credentials
svix application create '{ "name": "demo" }'
# or pipe in some json
echo '{ "name": "demo" }' | svix application create
# or use the convinence cli flags
# or use the convenience cli flags
svix application create --data-name demo

# List Applications
Expand Down
4 changes: 2 additions & 2 deletions cmd/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ func newMessageCmd() *messageCmd {
payloadFlagName := "data-payload"
create := &cobra.Command{
Use: "create APP_ID [JSON_PAYLOAD]",
Short: "Create a new messsage",
Long: `Create a new messsage
Short: "Create a new message",
Long: `Create a new message
Example Schema:
{
Expand Down
2 changes: 1 addition & 1 deletion cmd/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func newVerifyCmd() *verifyCmd {
} else if !cmd.Flags().Changed(timestampFlagName) {
err = fmt.Errorf("Timestamp required for verification!")
} else if !cmd.Flags().Changed(msgIdFlagName) {
err = fmt.Errorf("Message ID required for verifcation")
err = fmt.Errorf("Message ID required for verification")
}
printer.CheckErr(err)

Expand Down
8 changes: 4 additions & 4 deletions relay/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (c *Client) recLoop() {
c.sendErrorMaybe(err, c.stopRead)
return
}
go c.handleIncommingMessage(packet)
go c.handleIncomingMessage(packet)
}
}

Expand Down Expand Up @@ -287,7 +287,7 @@ func (c *Client) sendLoop() {
}
}

func (c *Client) handleIncommingMessage(packet []byte) {
func (c *Client) handleIncomingMessage(packet []byte) {
var msg IncomingMessage
if err := json.Unmarshal(packet, &msg); err != nil {
return
Expand All @@ -297,7 +297,7 @@ func (c *Client) handleIncommingMessage(packet []byte) {
var msgData IncomingMessageEventData
err := json.Unmarshal(msg.Data, &msgData)
if err != nil {
color.Red("Recieved Invalid Webhook message... skipping\n")
color.Red("Received Invalid Webhook message... skipping\n")
return
}
color.Blue("<- Forwarding Message to: %s", c.localURL.String())
Expand Down Expand Up @@ -364,7 +364,7 @@ func (c *Client) processResponse(id string, res *http.Response) {
Body: base64.StdEncoding.EncodeToString(buf),
},
}
color.Green("-> Recieved \"%s\" response, forwarding to webhook sender\n", res.Status)
color.Green("-> Received \"%s\" response, forwarding to webhook sender\n", res.Status)
c.SendMessage(msg)
}

Expand Down

0 comments on commit 6c9b9be

Please sign in to comment.