mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-01 00:00:14 +02:00
fix typo
This commit is contained in:
@@ -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