Skip to content

Commit

Permalink
docs(subscriber): fix typo in doc comment (#543)
Browse files Browse the repository at this point in the history
```
error[E0433]: failed to resolve: use of undeclared crate or module `tower_web`
 --> console-subscriber/src/lib.rs:989:5
  |
9 | use tower_web::cors::{CorsLayer, AllowOrigin};
  |     ^^^^^^^^^ use of undeclared crate or module `tower_web`
  |
help: there is a crate or module with a similar name
  |
9 | use tonic_web::cors::{CorsLayer, AllowOrigin};
```

The actual struct is https://docs.rs/tower-http/latest/tower_http/cors/struct.CorsLayer.html
  • Loading branch information
joshka authored Apr 10, 2024
1 parent ab10721 commit ff22678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console-subscriber/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ impl Server {
/// #
/// use console_subscriber::{ConsoleLayer, ServerParts};
/// use tonic_web::GrpcWebLayer;
/// use tower_web::cors::{CorsLayer, AllowOrigin};
/// use tower_http::cors::{CorsLayer, AllowOrigin};
/// use http::header::HeaderName;
/// # use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
/// # const DEFAULT_MAX_AGE: Duration = Duration::from_secs(24 * 60 * 60);
Expand Down

0 comments on commit ff22678

Please sign in to comment.