mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-26 00:00:23 +02:00
fix typo
This commit is contained in:
@@ -340,12 +340,12 @@ where
|
||||
|
||||
url_params::insert_url_params(req.extensions_mut(), match_.params);
|
||||
|
||||
let endpont = self
|
||||
let endpoint = self
|
||||
.routes
|
||||
.get_mut(&id)
|
||||
.expect("no route for id. This is a bug in axum. Please file an issue");
|
||||
|
||||
match endpont {
|
||||
match endpoint {
|
||||
Endpoint::MethodRouter(method_router) => {
|
||||
Ok(method_router.call_with_state(req, state))
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ impl TypedHeaderRejection {
|
||||
pub enum TypedHeaderRejectionReason {
|
||||
/// The header was missing from the HTTP request
|
||||
Missing,
|
||||
/// An error occured when parsing the header from the HTTP request
|
||||
/// An error occurred when parsing the header from the HTTP request
|
||||
Error(headers::Error),
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ use std::net::SocketAddr;
|
||||
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
||||
|
||||
// this embeddes the migrations into the application binary
|
||||
// the migration path is releative to the `CARGO_MANIFEST_DIR`
|
||||
// the migration path is relative to the `CARGO_MANIFEST_DIR`
|
||||
pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!("migrations/");
|
||||
|
||||
// normally part of your generated schema.rs file
|
||||
|
||||
@@ -54,7 +54,7 @@ async fn start_main_server() {
|
||||
async fn start_metrics_server() {
|
||||
let app = metrics_app();
|
||||
|
||||
// NOTE: expose metrics enpoint on a different port
|
||||
// NOTE: expose metrics endpoint on a different port
|
||||
let addr = SocketAddr::from(([127, 0, 0, 1], 3001));
|
||||
tracing::debug!("listening on {}", addr);
|
||||
axum::Server::bind(&addr)
|
||||
|
||||
Reference in New Issue
Block a user