1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-01 00:44:26 +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

@ -11,7 +11,7 @@ use actix_service::{
use futures::future::{ok, Either, Future, FutureResult};
use futures::{Async, IntoFuture, Poll};
use crate::dev::{HttpServiceFactory, ServiceConfig};
use crate::dev::{AppService, HttpServiceFactory};
use crate::error::Error;
use crate::guard::Guard;
use crate::resource::Resource;
@ -303,7 +303,7 @@ where
InitError = (),
> + 'static,
{
fn register(self, config: &mut ServiceConfig) {
fn register(self, config: &mut AppService) {
// update default resource if needed
if self.default.borrow().is_none() {
*self.default.borrow_mut() = Some(config.default_service());