Skip to content

Commit d632c58

Browse files
chore: fix function names in comment (#1596)
Signed-off-by: mountcount <[email protected]> Co-authored-by: Preston Vasquez <[email protected]>
1 parent 64d6ed0 commit d632c58

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
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 {

mongo/database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ func (db *Database) getEncryptedFieldsFromServer(ctx context.Context, collection
580580
return encryptedFields, nil
581581
}
582582

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

mongo/integration/unified_runner_events_helper_test.go

Lines changed: 1 addition & 1 deletion
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()

x/mongo/driver/operation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ func (op Operation) publishStartedEvent(ctx context.Context, info startedInforma
19891989
}
19901990
}
19911991

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

0 commit comments

Comments
 (0)