Skip to content

chore: fix function names in comment #1596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/test/faas/awslambda/mongodb/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (listener *eventListener) commandMonitor() *event.CommandMonitor {
}
}

// severMonitor initializes an event.ServerMonitor that will count the number
// serverMonitor initializes an event.ServerMonitor that will count the number
// of successful or failed heartbeat events and record a running duration of
// these events.
func (listener *eventListener) serverMonitor() *event.ServerMonitor {
Expand Down
2 changes: 1 addition & 1 deletion mongo/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ func (db *Database) getEncryptedFieldsFromServer(ctx context.Context, collection
return encryptedFields, nil
}

// getEncryptedFieldsFromServer tries to get an "encryptedFields" document associated with collectionName by checking the client EncryptedFieldsMap.
// getEncryptedFieldsFromMap tries to get an "encryptedFields" document associated with collectionName by checking the client EncryptedFieldsMap.
// Returns nil and no error if an EncryptedFieldsMap is not configured, or does not contain an entry for collectionName.
func (db *Database) getEncryptedFieldsFromMap(collectionName string) interface{} {
// Check the EncryptedFieldsMap
Expand Down
2 changes: 1 addition & 1 deletion mongo/integration/unified_runner_events_helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (u *unifiedRunnerEventMonitor) getPoolEventCount(eventType string) int {
return u.poolEventCount[mappedType]
}

// getServerMarkedUnknownEvent returns the number of ServerMarkedUnknownEvents, or 0 if none were recorded.
// getServerMarkedUnknownCount returns the number of ServerMarkedUnknownEvents, or 0 if none were recorded.
func (u *unifiedRunnerEventMonitor) getServerMarkedUnknownCount() int {
u.serverMarkedUnknownCountLock.Lock()
defer u.serverMarkedUnknownCountLock.Unlock()
Expand Down
2 changes: 1 addition & 1 deletion x/mongo/driver/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -1963,7 +1963,7 @@ func (op Operation) publishStartedEvent(ctx context.Context, info startedInforma
}
}

// canPublishSucceededEvent returns true if a CommandSucceededEvent can be
// canPublishFinishedEvent returns true if a CommandSucceededEvent can be
// published for the given command. This is true if the command is not an
// unacknowledged write and the command monitor is monitoring succeeded events.
func (op Operation) canPublishFinishedEvent(info finishedInformation) bool {
Expand Down
Loading