Unverified Commit 45a81059 authored by Alexandru Vasile's avatar Alexandru Vasile
Browse files

Fix middleware typo


Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>
parent 172b6f79
Pipeline #204957 passed with stages
in 4 minutes and 52 seconds
......@@ -47,8 +47,8 @@ impl middleware::HttpMiddleware for Timings {
println!("[Middleware::on_call] method: '{}', params: {:?}, kind: {}", name, params, kind);
}
fn on_result(&self, name: &str, succeess: bool, started_at: Self::Instant) {
println!("[Middleware::on_result] '{}', worked? {}, time elapsed {:?}", name, succeess, started_at.elapsed());
fn on_result(&self, name: &str, success: bool, started_at: Self::Instant) {
println!("[Middleware::on_result] '{}', worked? {}, time elapsed {:?}", name, success, started_at.elapsed());
}
fn on_response(&self, result: &str, started_at: Self::Instant) {
......
......@@ -51,8 +51,8 @@ impl middleware::WsMiddleware for Timings {
println!("[Middleware::on_call] method: '{}', params: {:?}, kind: {}", name, params, kind);
}
fn on_result(&self, name: &str, succeess: bool, started_at: Self::Instant) {
println!("[Middleware::on_result] '{}', worked? {}, time elapsed {:?}", name, succeess, started_at.elapsed());
fn on_result(&self, name: &str, success: bool, started_at: Self::Instant) {
println!("[Middleware::on_result] '{}', worked? {}, time elapsed {:?}", name, success, started_at.elapsed());
}
fn on_response(&self, result: &str, started_at: Self::Instant) {
......
......@@ -56,8 +56,8 @@ impl middleware::WsMiddleware for Timings {
println!("[Timings:on_call] method: '{}', params: {:?}, kind: {}", name, params, kind);
}
fn on_result(&self, name: &str, succeess: bool, started_at: Self::Instant) {
println!("[Timings] call={}, worked? {}, duration {:?}", name, succeess, started_at.elapsed());
fn on_result(&self, name: &str, success: bool, started_at: Self::Instant) {
println!("[Timings] call={}, worked? {}, duration {:?}", name, success, started_at.elapsed());
}
fn on_response(&self, _result: &str, started_at: Self::Instant) {
......
......@@ -55,8 +55,8 @@ impl middleware::HttpMiddleware for Timings {
println!("[Middleware::on_call] method: '{}', params: {:?}, kind: {}", name, params, kind);
}
fn on_result(&self, name: &str, succeess: bool, started_at: Self::Instant) {
println!("[Middleware::on_result] '{}', worked? {}, time elapsed {:?}", name, succeess, started_at.elapsed());
fn on_result(&self, name: &str, success: bool, started_at: Self::Instant) {
println!("[Middleware::on_result] '{}', worked? {}, time elapsed {:?}", name, success, started_at.elapsed());
}
fn on_response(&self, result: &str, started_at: Self::Instant) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment