Skip to content

Commit

Permalink
refactor: import ServiceCtx from ntex::service
Browse files Browse the repository at this point in the history
  • Loading branch information
leon3s committed Jun 27, 2023
1 parent 0f8b805 commit 31b9ca5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/middleware/src/errorhandler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

// <error-handler>
use ntex::http::header;
use ntex::service::{Middleware, Service};
use ntex::service::{Middleware, Service, ServiceCtx};
use ntex::util::BoxFuture;
use ntex::{web, ServiceCtx};
use ntex::web;

pub struct Error;

Expand Down
4 changes: 2 additions & 2 deletions examples/middleware/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ pub mod logger;
pub mod user_sessions;

// <simple>
use ntex::service::{Middleware, Service};
use ntex::service::{Middleware, Service, ServiceCtx};
use ntex::util::BoxFuture;
use ntex::{web, ServiceCtx};
use ntex::web;

// There are two steps in middleware processing.
// 1. Middleware initialization, middleware factory gets called with
Expand Down

0 comments on commit 31b9ca5

Please sign in to comment.