@@ -149,23 +149,23 @@ func (o *ClientOptions) SetResumeSubs(resume bool) *ClientOptions {
149
149
150
150
// SetClientID will set the client id to be used by this client when
151
151
// connecting to the MQTT broker. According to the MQTT v3.1 specification,
152
- // a client id mus be no longer than 23 characters.
152
+ // a client id must be no longer than 23 characters.
153
153
func (o * ClientOptions ) SetClientID (id string ) * ClientOptions {
154
154
o .ClientID = id
155
155
return o
156
156
}
157
157
158
158
// SetUsername will set the username to be used by this client when connecting
159
159
// to the MQTT broker. Note: without the use of SSL/TLS, this information will
160
- // be sent in plaintext accross the wire.
160
+ // be sent in plaintext across the wire.
161
161
func (o * ClientOptions ) SetUsername (u string ) * ClientOptions {
162
162
o .Username = u
163
163
return o
164
164
}
165
165
166
166
// SetPassword will set the password to be used by this client when connecting
167
167
// to the MQTT broker. Note: without the use of SSL/TLS, this information will
168
- // be sent in plaintext accross the wire.
168
+ // be sent in plaintext across the wire.
169
169
func (o * ClientOptions ) SetPassword (p string ) * ClientOptions {
170
170
o .Password = p
171
171
return o
@@ -174,7 +174,7 @@ func (o *ClientOptions) SetPassword(p string) *ClientOptions {
174
174
// SetCredentialsProvider will set a method to be called by this client when
175
175
// connecting to the MQTT broker that provide the current username and password.
176
176
// Note: without the use of SSL/TLS, this information will be sent
177
- // in plaintext accross the wire.
177
+ // in plaintext across the wire.
178
178
func (o * ClientOptions ) SetCredentialsProvider (p CredentialsProvider ) * ClientOptions {
179
179
o .CredentialsProvider = p
180
180
return o
@@ -301,7 +301,7 @@ func (o *ClientOptions) SetWriteTimeout(t time.Duration) *ClientOptions {
301
301
}
302
302
303
303
// SetConnectTimeout limits how long the client will wait when trying to open a connection
304
- // to an MQTT server before timeing out and erroring the attempt. A duration of 0 never times out.
304
+ // to an MQTT server before timing out and erroring the attempt. A duration of 0 never times out.
305
305
// Default 30 seconds. Currently only operational on TCP/TLS connections.
306
306
func (o * ClientOptions ) SetConnectTimeout (t time.Duration ) * ClientOptions {
307
307
o .ConnectTimeout = t
@@ -324,7 +324,7 @@ func (o *ClientOptions) SetAutoReconnect(a bool) *ClientOptions {
324
324
}
325
325
326
326
// SetMessageChannelDepth sets the size of the internal queue that holds messages while the
327
- // client is temporairily offline, allowing the application to publish when the client is
327
+ // client is temporarily offline, allowing the application to publish when the client is
328
328
// reconnecting. This setting is only valid if AutoReconnect is set to true, it is otherwise
329
329
// ignored.
330
330
func (o * ClientOptions ) SetMessageChannelDepth (s uint ) * ClientOptions {
0 commit comments