From 02e387ea6493ec262e83f5cc8d699a8aa51fe95d Mon Sep 17 00:00:00 2001 From: EinoPlasma <1805544976@qq.com> Date: Sun, 29 Dec 2024 20:59:24 +0800 Subject: [PATCH 1/2] Fix method comment in PasswordMessage --- pgproto3/password_message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgproto3/password_message.go b/pgproto3/password_message.go index d820d3275..67b78515d 100644 --- a/pgproto3/password_message.go +++ b/pgproto3/password_message.go @@ -12,7 +12,7 @@ type PasswordMessage struct { // Frontend identifies this message as sendable by a PostgreSQL frontend. func (*PasswordMessage) Frontend() {} -// Frontend identifies this message as an authentication response. +// InitialResponse identifies this message as an authentication response. func (*PasswordMessage) InitialResponse() {} // Decode decodes src into dst. src must contain the complete message with the exception of the initial 1 byte message From 6d9e6a726eeae58b7fbb19fd8727cef4b4762f10 Mon Sep 17 00:00:00 2001 From: EinoPlasma <1805544976@qq.com> Date: Sun, 29 Dec 2024 21:03:38 +0800 Subject: [PATCH 2/2] Fix typo in test function name --- pgconn/ctxwatch/context_watcher_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgconn/ctxwatch/context_watcher_test.go b/pgconn/ctxwatch/context_watcher_test.go index 302aabe3b..a18e7339e 100644 --- a/pgconn/ctxwatch/context_watcher_test.go +++ b/pgconn/ctxwatch/context_watcher_test.go @@ -49,7 +49,7 @@ func TestContextWatcherContextCancelled(t *testing.T) { require.True(t, cleanupCalled, "Cleanup func was not called") } -func TestContextWatcherUnwatchdBeforeContextCancelled(t *testing.T) { +func TestContextWatcherUnwatchedBeforeContextCancelled(t *testing.T) { cw := ctxwatch.NewContextWatcher(&testHandler{ handleCancel: func(context.Context) { t.Error("cancel func should not have been called")