Skip to content

Commit

Permalink
fix lint, update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrodriges committed Nov 26, 2024
1 parent 799f849 commit e24550c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e24550c

Please sign in to comment.