Skip to content

Commit afc7f86

Browse files
committed
chore: fix wrong spell comment in lib/connection.js
1 parent 534ba35 commit afc7f86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/connection.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class Connection extends EventEmitter {
117117
handshakeCommand.on('end', () => {
118118
// this happens when handshake finishes early either because there was
119119
// some fatal error or the server sent an error packet instead of
120-
// an hello packet (for example, 'Too many connactions' error)
120+
// an hello packet (for example, 'Too many connections' error)
121121
if (!handshakeCommand.handshake || this._fatalError || this._protocolError) {
122122
return;
123123
}
@@ -131,9 +131,9 @@ class Connection extends EventEmitter {
131131
});
132132
this.addCommand(handshakeCommand);
133133
}
134-
// in case there was no initiall handshake but we need to read sting, assume it utf-8
134+
// in case there was no initial handshake but we need to read sting, assume it utf-8
135135
// most common example: "Too many connections" error ( packet is sent immediately on connection attempt, we don't know server encoding yet)
136-
// will be overwrittedn with actial encoding value as soon as server handshake packet is received
136+
// will be overwritten with actual encoding value as soon as server handshake packet is received
137137
this.serverEncoding = 'utf8';
138138
if (this.config.connectTimeout) {
139139
const timeoutHandler = this._handleTimeoutError.bind(this);
@@ -561,7 +561,7 @@ class Connection extends EventEmitter {
561561
this._paused = false;
562562
while ((packet = this._paused_packets.shift())) {
563563
this.handlePacket(packet);
564-
// don't resume if packet hander paused connection
564+
// don't resume if packet handler paused connection
565565
if (this._paused) {
566566
return;
567567
}

0 commit comments

Comments
 (0)