From e24550c36f20583f428f0a65f224616c031eb4f3 Mon Sep 17 00:00:00 2001 From: bbrodriges Date: Tue, 26 Nov 2024 12:55:34 +0300 Subject: [PATCH] fix lint, update comment --- e2e_test.go | 1 - node.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/e2e_test.go b/e2e_test.go index 731b383..9c20089 100644 --- a/e2e_test.go +++ b/e2e_test.go @@ -416,7 +416,6 @@ var _ io.Closer = (*mockQuerier)(nil) // mockQuerier returns fake SQL results to tests type mockQuerier struct { - name string queryFn func(ctx context.Context, query string, args ...any) (*sql.Rows, error) queryRowFn func(ctx context.Context, query string, args ...any) *sql.Row closeFn func() error diff --git a/node.go b/node.go index 7f45c23..d40403f 100644 --- a/node.go +++ b/node.go @@ -45,7 +45,7 @@ func NewNode[T Querier](name string, db T) *Node[T] { return &Node[T]{name: name, db: db} } -// DB returns node's database/sql DB +// DB returns node's database connection func (n *Node[T]) DB() T { return n.db }