Skip to content

Commit

Permalink
[IMPROVED] Fix typos in comments. (#1547)
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Bauch <bauch@struktur.de>
  • Loading branch information
fancycode committed Feb 7, 2024
1 parent 7baddc7 commit d7fda7d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion encoders/builtin/default_enc.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
// DefaultEncoder implementation for EncodedConn.
// This encoder will leave []byte and string untouched, but will attempt to
// turn numbers into appropriate strings that can be decoded. It will also
// propely encoded and decode bools. If will encode a struct, but if you want
// properly encoded and decode bools. If will encode a struct, but if you want
// to properly handle structures you should use JsonEncoder.
type DefaultEncoder struct {
// Empty
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ func ExampleSubOpt() {
nats.MaxDeliver(1),
// Activate Flow control algorithm from the server.
nats.EnableFlowControl(),
// Track heartbeats from the server fro missed sequences.
// Track heartbeats from the server for missed sequences.
nats.IdleHeartbeat(500*time.Millisecond),
)

Expand Down
2 changes: 1 addition & 1 deletion jetstream/stream_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ type (
//
// If set to true, publish methods from the JetStream client will not
// work as expected, since they rely on acknowledgements. Core NATS
// publish methods should be used instead. Note tha this will make
// publish methods should be used instead. Note that this will make
// message delivery less reliable.
NoAck bool `json:"no_ack,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion micro/test/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func TestServiceBasics(t *testing.T) {

// Services should process 50 requests total
if requestsNum != 50 {
t.Fatalf("Expected a total fo 50 requests processed, got: %d", requestsNum)
t.Fatalf("Expected a total of 50 requests processed, got: %d", requestsNum)
}
// Reset stats for a service
svcs[0].Reset()
Expand Down
2 changes: 1 addition & 1 deletion object.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func (obs *obs) Put(meta *ObjectMeta, r io.Reader, opts ...ObjectOpt) (*ObjectIn
case <-time.After(obs.js.opts.wait):
}
if err := obs.js.purgeStream(obs.stream, &StreamPurgeRequest{Subject: chunkSubj}); err != nil {
return fmt.Errorf("could not cleanup bucket after erronous put operation: %w", err)
return fmt.Errorf("could not cleanup bucket after erroneous put operation: %w", err)
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion test/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2890,7 +2890,7 @@ func TestTLSHandshakeFirst(t *testing.T) {
tlsConf.ServerName = "localhost"

// Start a mockup server that will do the TLS handshake first
// and then send the INFO protcol.
// and then send the INFO protocol.
l, e := net.Listen("tcp", ":0")
if e != nil {
t.Fatal("Could not listen on an ephemeral port")
Expand Down
2 changes: 1 addition & 1 deletion test/js_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8622,7 +8622,7 @@ func TestJetStreamMsgSubjectRewrite(t *testing.T) {
t.Fatalf("Subject should be %q, got %q", "foo", msg.Subject)
}
if string(msg.Data) != "msg" {
t.Fatalf("Unexepcted data: %q", msg.Data)
t.Fatalf("Unexpected data: %q", msg.Data)
}
}

Expand Down

0 comments on commit d7fda7d

Please sign in to comment.