Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2edef5d4
Commit
2edef5d4
authored
Oct 13, 2021
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the Connection#pool_size method
This method is no longer in use.
parent
b7027ef8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
lib/gitlab/database/connection.rb
lib/gitlab/database/connection.rb
+0
-4
spec/lib/gitlab/database/connection_spec.rb
spec/lib/gitlab/database/connection_spec.rb
+0
-18
No files found.
lib/gitlab/database/connection.rb
View file @
2edef5d4
...
...
@@ -31,10 +31,6 @@ module Gitlab
scope
.
connection_db_config
.
configuration_hash
.
with_indifferent_access
end
def
pool_size
config
[
:pool
]
||
Database
.
default_pool_size
end
def
username
config
[
:username
]
||
ENV
[
'USER'
]
end
...
...
spec/lib/gitlab/database/connection_spec.rb
View file @
2edef5d4
...
...
@@ -23,24 +23,6 @@ RSpec.describe Gitlab::Database::Connection do
end
end
describe
'#pool_size'
do
context
'when no explicit size is configured'
do
it
'returns the default pool size'
do
expect
(
connection
).
to
receive
(
:config
).
and_return
({
pool:
nil
})
expect
(
connection
.
pool_size
).
to
eq
(
Gitlab
::
Database
.
default_pool_size
)
end
end
context
'when an explicit pool size is set'
do
it
'returns the pool size'
do
expect
(
connection
).
to
receive
(
:config
).
and_return
({
pool:
4
})
expect
(
connection
.
pool_size
).
to
eq
(
4
)
end
end
end
describe
'#username'
do
context
'when a username is set'
do
it
'returns the username'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment