Skip to content

Commit

Permalink
Merge pull request #398 from HowJMay/fix_typo
Browse files Browse the repository at this point in the history
fix: Fix typos
  • Loading branch information
Al S-M committed Jan 21, 2020
2 parents 99e1673 + 18904dc commit 0d940dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client.go
Expand Up @@ -794,7 +794,7 @@ func (c *client) SubscribeMultiple(filters map[string]byte, callback MessageHand
return token
}

// reserveStoredPublishIDs reserves the ids for publish packets in the persistant store to ensure these are not duplicated
// reserveStoredPublishIDs reserves the ids for publish packets in the persistent store to ensure these are not duplicated
func (c *client) reserveStoredPublishIDs() {
// The resume function sets the stored id for publish packets only (some other packets
// will get new ids in net code). This means that the only keys we need to ensure are
Expand Down
2 changes: 1 addition & 1 deletion fvt_client_test.go
Expand Up @@ -1308,7 +1308,7 @@ func Test_ResumeSubsWithReconnect(t *testing.T) {
t.Fatalf("Connect returned error (%v)", sConnToken.Error())
}

// Send subscription request and then immediatly force disconnect (hope it will happen before sub sent)
// Send subscription request and then immediately force disconnect (hope it will happen before sub sent)
subToken := newToken(packets.Subscribe).(*SubscribeToken)
sub := packets.NewControlPacket(packets.Subscribe).(*packets.SubscribePacket)
sub.Topics = append(sub.Topics, topic)
Expand Down
2 changes: 1 addition & 1 deletion websocket.go
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/gorilla/websocket"
)

// NewWebsocket returns a new websocket and returns a net.Conn compatiable interface using the gorilla/websocket package
// NewWebsocket returns a new websocket and returns a net.Conn compatible interface using the gorilla/websocket package
func NewWebsocket(host string, tlsc *tls.Config, timeout time.Duration, requestHeader http.Header) (net.Conn, error) {
if timeout == 0 {
timeout = 10 * time.Second
Expand Down

0 comments on commit 0d940dd

Please sign in to comment.