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

all: fix a lot of typos #438

Merged
merged 1 commit into from
Apr 30, 2024
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 _examples/basic/1-your-first-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ server_1 | 2019/08/29 19:41:28 received event {ID:8}
server_1 | 2019/08/29 19:41:29 received event {ID:9}
```

Open another termial and take a look at Kafka topics to see that all messages are there. The initial events should be present on the `events` topic:
Open another terminal and take a look at Kafka topics to see that all messages are there. The initial events should be present on the `events` topic:

```bash
> docker-compose exec kafka kafka-console-consumer --bootstrap-server localhost:9092 --topic events
Expand Down
2 changes: 1 addition & 1 deletion dev/coverage.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
########
# Source: https://gist.github.com/lwolf/3764a3b6cd08387e80aa6ca3b9534b8a
# originaly from https://github.com/mlafeldt/chef-runner/blob/v0.7.0/script/coverage
# originally from https://github.com/mlafeldt/chef-runner/blob/v0.7.0/script/coverage
#######
# Generate test coverage statistics for Go packages.
#
Expand Down
2 changes: 1 addition & 1 deletion docs/layouts/shortcodes/render-md.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
{{% load-snippet-partial (...) %}}
{{% /render-md %}}

bacause it is rendered as raw text by default
because it is rendered as raw text by default
*/}}
{{.Inner}}
2 changes: 1 addition & 1 deletion message/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ func (r *Router) decorateHandlerSubscriber(h *handler) error {
return nil
}

// addHandlerContext enriches the contex with values that are relevant within this handler's context.
// addHandlerContext enriches the context with values that are relevant within this handler's context.
func (h *handler) addHandlerContext(messages ...*Message) {
for i, msg := range messages {
ctx := msg.Context()
Expand Down
2 changes: 1 addition & 1 deletion message/router/middleware/deduplicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
const MessageHasherReadLimitMinimum = 64

// ExpiringKeyRepository is a state container for checking the
// existance of a key in a certain time window.
// existence of a key in a certain time window.
// All operations must be safe for concurrent use.
type ExpiringKeyRepository interface {
// IsDuplicate returns `true` if the key
Expand Down
4 changes: 2 additions & 2 deletions message/subscriber/read.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/ThreeDotsLabs/watermill/message"
)

// BulkRead reads provided amount of messages from the provided channel, until a timeout occurrs or the limit is reached.
// BulkRead reads provided amount of messages from the provided channel, until a timeout occurs or the limit is reached.
func BulkRead(messagesCh <-chan *message.Message, limit int, timeout time.Duration) (receivedMessages message.Messages, all bool) {
MessagesLoop:
for len(receivedMessages) < limit {
Expand All @@ -27,7 +27,7 @@ MessagesLoop:
}

// BulkReadWithDeduplication reads provided number of messages from the provided channel, ignoring duplicates,
// until a timeout occurrs or the limit is reached.
// until a timeout occurs or the limit is reached.
func BulkReadWithDeduplication(messagesCh <-chan *message.Message, limit int, timeout time.Duration) (receivedMessages message.Messages, all bool) {
receivedIDs := map[string]struct{}{}

Expand Down
2 changes: 1 addition & 1 deletion slog.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (s *SlogLoggerAdapter) Debug(msg string, fields LogFields) {
func (s *SlogLoggerAdapter) Trace(msg string, fields LogFields) {
s.slog.Log(
// Void context, following the slog example
// as it treats context slighly differently from
// as it treats context slightly differently from
// normal usage, minding contextual
// values, but ignoring contextual deadline.
// See the [slog] package documentation
Expand Down
Loading