1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

Rename RouterConfig to ServiceConfig

This commit is contained in:
Nikolay Kim
2019-04-15 07:32:49 -07:00
parent 1eebd47072
commit 09cdf1e302
11 changed files with 33 additions and 30 deletions

View File

@ -10,7 +10,7 @@ use std::{cmp, io};
use actix_service::boxed::{self, BoxedNewService, BoxedService};
use actix_service::{IntoNewService, NewService, Service};
use actix_web::dev::{
HttpServiceFactory, Payload, ResourceDef, ServiceConfig, ServiceRequest,
AppService, HttpServiceFactory, Payload, ResourceDef, ServiceRequest,
ServiceResponse,
};
use actix_web::error::{BlockingError, Error, ErrorInternalServerError};
@ -349,7 +349,7 @@ impl Files {
}
impl HttpServiceFactory for Files {
fn register(self, config: &mut ServiceConfig) {
fn register(self, config: &mut AppService) {
if self.default.borrow().is_none() {
*self.default.borrow_mut() = Some(config.default_service());
}