Skip to content

Commit

Permalink
refactor(mongo_client): fix typos in lib/mongo_client.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kakts authored and mbroadst committed Dec 13, 2017
1 parent f608f44 commit 89c20d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/mongo_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -668,15 +668,15 @@ function createServer(self, options, callback) {
// Set default options
var servers = translateOptions(options);

// Propegate the events to the client
// Propagate the events to the client
var collectedEvents = collectEvents(self, servers[0]);

// Connect to topology
servers[0].connect(function(err, topology) {
if (err) return callback(err);
// Clear out all the collected event listeners
clearAllEvents(servers[0]);
// Relaty all the events
// Relay all the events
relayEvents(self, servers[0]);
// Add listeners
addListeners(self, servers[0]);
Expand Down Expand Up @@ -714,7 +714,7 @@ function createReplicaset(self, options, callback) {
// Add listeners
addListeners(self, topology);

// Propegate the events to the client
// Propagate the events to the client
relayEvents(self, topology);

// Open the connection
Expand All @@ -739,7 +739,7 @@ function createMongos(self, options, callback) {
// Add listeners
addListeners(self, topology);

// Propegate the events to the client
// Propagate the events to the client
relayEvents(self, topology);

// Open the connection
Expand Down

0 comments on commit 89c20d4

Please sign in to comment.