Skip to content

Commit bf995af

Browse files
mountcountprestonvasquez
authored andcommitted
chore: fix function names in comment (mongodb#1596)
Signed-off-by: mountcount <[email protected]> Co-authored-by: Preston Vasquez <[email protected]> (cherry picked from commit d632c58)
1 parent b59ada6 commit bf995af

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

internal/cmd/faas/awslambda/mongodb/bootstrap.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (listener *eventListener) commandMonitor() *event.CommandMonitor {
5555
}
5656
}
5757

58-
// severMonitor initializes an event.ServerMonitor that will count the number
58+
// serverMonitor initializes an event.ServerMonitor that will count the number
5959
// of successful or failed heartbeat events and record a running duration of
6060
// these events.
6161
func (listener *eventListener) serverMonitor() *event.ServerMonitor {

internal/integration/unified_runner_events_helper_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (u *unifiedRunnerEventMonitor) getPoolEventCount(eventType string) int {
7575
return u.poolEventCount[mappedType]
7676
}
7777

78-
// getServerMarkedUnknownEvent returns the number of ServerMarkedUnknownEvents, or 0 if none were recorded.
78+
// getServerMarkedUnknownCount returns the number of ServerMarkedUnknownEvents, or 0 if none were recorded.
7979
func (u *unifiedRunnerEventMonitor) getServerMarkedUnknownCount() int {
8080
u.serverMarkedUnknownCountLock.Lock()
8181
defer u.serverMarkedUnknownCountLock.Unlock()

mongo/database.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ func (db *Database) getEncryptedFieldsFromServer(ctx context.Context, collection
683683
return encryptedFields, nil
684684
}
685685

686-
// getEncryptedFieldsFromServer tries to get an "encryptedFields" document associated with collectionName by checking the client EncryptedFieldsMap.
686+
// getEncryptedFieldsFromMap tries to get an "encryptedFields" document associated with collectionName by checking the client EncryptedFieldsMap.
687687
// Returns nil and no error if an EncryptedFieldsMap is not configured, or does not contain an entry for collectionName.
688688
func (db *Database) getEncryptedFieldsFromMap(collectionName string) interface{} {
689689
// Check the EncryptedFieldsMap

x/mongo/driver/operation.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@ func (op Operation) publishStartedEvent(ctx context.Context, info startedInforma
19401940
}
19411941
}
19421942

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

0 commit comments

Comments
 (0)