Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
Vault
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Lambert
Vault
Commits
39dbf3db
Commit
39dbf3db
authored
3 years ago
by
vlorentz
Browse files
Options
Downloads
Patches
Plain Diff
Finish removing aiohttp
parent
7397110d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
conftest.py
+0
-1
0 additions, 1 deletion
conftest.py
swh/vault/cli.py
+3
-3
3 additions, 3 deletions
swh/vault/cli.py
with
3 additions
and
4 deletions
conftest.py
+
0
−
1
View file @
39dbf3db
...
...
@@ -4,7 +4,6 @@
# See top-level LICENSE file for more information
pytest_plugins
=
[
"
aiohttp.pytest_plugin
"
,
"
swh.storage.pytest_plugin
"
,
"
swh.loader.pytest_plugin
"
,
]
This diff is collapsed.
Click to expand it.
swh/vault/cli.py
+
3
−
3
View file @
39dbf3db
...
...
@@ -165,11 +165,11 @@ def cook(
@click.pass_context
def
serve
(
ctx
,
config_file
,
host
,
port
,
debug
):
"""
Software Heritage Vault RPC server.
"""
import
aiohttp
from
swh.vault.api.server
import
make_app_from_configfile
ctx
.
ensure_object
(
dict
)
if
"
log_level
"
in
ctx
.
obj
:
logging
.
getLogger
(
"
werkzeug
"
).
setLevel
(
ctx
.
obj
[
"
log_level
"
])
try
:
app
=
make_app_from_configfile
(
config_file
,
debug
=
debug
)
...
...
@@ -177,7 +177,7 @@ def serve(ctx, config_file, host, port, debug):
click
.
echo
(
e
.
msg
,
err
=
True
)
ctx
.
exit
(
1
)
a
iohttp
.
web
.
run_app
(
app
,
host
=
host
,
port
=
int
(
port
))
a
pp
.
run
(
host
,
port
=
int
(
port
)
,
debug
=
debug
)
def
main
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment