Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling fixes #96

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/dispatcher/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ func (d *Dispatcher) Send(ctx context.Context, message *universal.RoutableMessag

addr := make([]byte, addressLength)
// Message UUIDs are only used for debugging message logs and are not
// copied into the recieverKey used to match responses to requests.
// copied into the receiverKey used to match responses to requests.
uuid := make([]byte, uuidLength)
if _, err := rand.Read(uuid); err != nil {
return nil, err
Expand Down
6 changes: 3 additions & 3 deletions internal/dispatcher/dispatcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -770,21 +770,21 @@ func TestDoNotBlockOnResponder(t *testing.T) {
select {
case <-rsp2.Recv():
case <-ctx.Done():
t.Fatalf("Didn't recieve message for second command: %s", err)
t.Fatalf("Didn't receive message for second command: %s", err)
}

// Check that responderBufferSize messages (and no more!) arrived at the rsp1.
for i := 0; i < receiverBufferSize; i++ {
select {
case <-rsp1.Recv():
case <-ctx.Done():
t.Fatalf("Didn't recieve message for second command: %s", err)
t.Fatalf("Didn't receive message for second command: %s", err)
}
}

select {
case <-rsp1.Recv():
t.Fatalf("Recieved more messages than expected")
t.Fatalf("Received more messages than expected")
case <-ctx.Done():
}
}
Expand Down
4 changes: 0 additions & 4 deletions pkg/connector/ble/ble.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ func (c *Connection) Send(ctx context.Context, buffer []byte) error {
return nil
}

func (c *Connection) Recieve() <-chan []byte {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already a Receive method.

return c.inbox
}

func (c *Connection) VIN() string {
return c.vin
}
Expand Down