Merge pull request #2211 from EinoPlasma/master

Fixes for Method Comment and Typo in Test Function Name
pull/2216/head
Jack Christensen 2024-12-30 20:12:22 -06:00 committed by GitHub
commit 4ff0a454e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ func TestContextWatcherContextCancelled(t *testing.T) {
require.True(t, cleanupCalled, "Cleanup func was not called") require.True(t, cleanupCalled, "Cleanup func was not called")
} }
func TestContextWatcherUnwatchdBeforeContextCancelled(t *testing.T) { func TestContextWatcherUnwatchedBeforeContextCancelled(t *testing.T) {
cw := ctxwatch.NewContextWatcher(&testHandler{ cw := ctxwatch.NewContextWatcher(&testHandler{
handleCancel: func(context.Context) { handleCancel: func(context.Context) {
t.Error("cancel func should not have been called") t.Error("cancel func should not have been called")

View File

@ -12,7 +12,7 @@ type PasswordMessage struct {
// Frontend identifies this message as sendable by a PostgreSQL frontend. // Frontend identifies this message as sendable by a PostgreSQL frontend.
func (*PasswordMessage) Frontend() {} func (*PasswordMessage) Frontend() {}
// Frontend identifies this message as an authentication response. // InitialResponse identifies this message as an authentication response.
func (*PasswordMessage) InitialResponse() {} func (*PasswordMessage) InitialResponse() {}
// Decode decodes src into dst. src must contain the complete message with the exception of the initial 1 byte message // Decode decodes src into dst. src must contain the complete message with the exception of the initial 1 byte message