Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
jsonrpsee
Commits
b1cd730d
Unverified
Commit
b1cd730d
authored
Aug 12, 2022
by
Niklas Adolfsson
Committed by
GitHub
Aug 12, 2022
Browse files
Update http-server/src/server.rs
parent
5685da9d
Pipeline
#207812
canceled with stages
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
http-server/src/server.rs
View file @
b1cd730d
...
...
@@ -598,7 +598,6 @@ impl<L: Logger> hyper::service::Service<hyper::Request<hyper::Body>> for TowerSe
fn
call
(
&
mut
self
,
request
:
hyper
::
Request
<
hyper
::
Body
>
)
->
Self
::
Future
{
let
data
=
self
.inner
.clone
();
// Note that `handle_request` will never return error.
// The dummy error is set in place to satisfy the server's trait bounds regarding the
// `tower::ServiceBuilder` and the error will never be mapped.
Box
::
pin
(
data
.handle_request
(
request
)
.map
(
Ok
))
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment