File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ All notable changes to this project will be documented in this file.
28
28
29
29
### Added
30
30
31
- - Instrument ` WebhookServer ` with ` AxumTraceLayer ` , add static healthcheck without instrumentation ([ #758 ] ).
32
- - Add shutdown signal hander for the ` WebhookServer ` ([ #767 ] ).
31
+ - Instrument ` WebhookServer ` with ` AxumTraceLayer ` , add static health-check without instrumentation ([ #758 ] ).
32
+ - Add shutdown signal handler for the ` WebhookServer ` ([ #767 ] ).
33
33
34
34
### Changed
35
35
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ pub const DEFAULT_HTTPS_PORT: u16 = 8443;
8
8
/// The default IP address `127.0.0.1` the webhook server binds to.
9
9
pub const DEFAULT_IP_ADDRESS : IpAddr = IpAddr :: V4 ( Ipv4Addr :: new ( 127 , 0 , 0 , 1 ) ) ;
10
10
11
- /// The default socket address `127.0.0.1:8443` the webhook server vinds to.
11
+ /// The default socket address `127.0.0.1:8443` the webhook server binds to.
12
12
pub const DEFAULT_SOCKET_ADDR : SocketAddr = SocketAddr :: new ( DEFAULT_IP_ADDRESS , DEFAULT_HTTPS_PORT ) ;
Original file line number Diff line number Diff line change 1
1
//! Utility types and functions to easily create ready-to-use webhook servers
2
2
//! which can handle different tasks, for example CRD conversions. All webhook
3
- //! servers use HTTPS by defaultThis library is fully compatible with the
3
+ //! servers use HTTPS by default. This library is fully compatible with the
4
4
//! [`tracing`] crate and emits debug level tracing data.
5
5
//!
6
6
//! Most users will only use the top-level exported generic [`WebhookServer`]
7
- //! which enables complete control over the [Router] which handles registering
7
+ //! which enables complete control over the [` Router` ] which handles registering
8
8
//! routes and their handler functions.
9
9
//!
10
10
//! ```
20
20
//! only required parameters are a conversion handler function and [`Options`].
21
21
//!
22
22
//! This library additionally also exposes lower-level structs and functions to
23
- //! enable complete controll over these details if needed.
23
+ //! enable complete control over these details if needed.
24
24
//!
25
25
//! [1]: crate::servers::ConversionWebhookServer
26
26
use axum:: { Router , routing:: get} ;
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ pub enum Error {
62
62
/// Custom implementation of [`std::cmp::PartialEq`] because some inner types
63
63
/// don't implement it.
64
64
///
65
- /// Note that this implementation is restritced to testing because there are
65
+ /// Note that this implementation is restricted to testing because there are
66
66
/// variants that use [`stackable_certs::ca::Error`] which only implements
67
67
/// [`PartialEq`] for tests.
68
68
#[ cfg( test) ]
@@ -84,7 +84,7 @@ impl PartialEq for Error {
84
84
}
85
85
}
86
86
87
- /// A server which terminates TLS connections and allows clients to commnunicate
87
+ /// A server which terminates TLS connections and allows clients to communicate
88
88
/// via HTTPS with the underlying HTTP router.
89
89
pub struct TlsServer {
90
90
config : Arc < ServerConfig > ,
@@ -96,7 +96,7 @@ impl TlsServer {
96
96
#[ instrument( name = "create_tls_server" , skip( router) ) ]
97
97
pub async fn new ( socket_addr : SocketAddr , router : Router ) -> Result < Self > {
98
98
// NOTE(@NickLarsenNZ): This code is not async, and does take some
99
- // non-negligable amount of time to complete (moreso in debug ).
99
+ // non-negligible amount of time to complete (moreso in debug).
100
100
// We run this in a thread reserved for blocking code so that the Tokio
101
101
// executor is able to make progress on other futures instead of being
102
102
// blocked.
You can’t perform that action at this time.
0 commit comments