Change closure register name

This commit is contained in:
jdeepee 2020-10-21 19:13:26 +01:00
parent 5f825a96f1
commit b78dd3a0e1
1 changed files with 2 additions and 2 deletions

View File

@ -126,9 +126,9 @@ impl Logger {
self self
} }
/// Register a closure to be run on the logger. /// Register a closure to be run on the request output of the logger.
/// Note: output from closure will be present at end of logger output. Multiple closure will be ran in the order they are registed. /// Note: output from closure will be present at end of logger output. Multiple closure will be ran in the order they are registed.
pub fn register_closure( pub fn register_request_closure(
mut self, mut self,
closure: fn(req: &ServiceRequest) -> String, closure: fn(req: &ServiceRequest) -> String,
) -> Self { ) -> Self {