Unverified Commit 5c4e17aa authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Fix doc comment on `from_conf` (#2923)

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent 17e78b68
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -198,10 +198,9 @@ class FluentClientGenerator(
                        ///
                        /// ## Panics
                        ///
                        /// - This method will panic if the `conf` is missing an async sleep implementation. If you experience this panic, set
                        ///     the `sleep_impl` on the Config passed into this function to fix it.
                        /// - This method will panic if the `conf` is missing an HTTP connector. If you experience this panic, set the
                        ///     `http_connector` on the Config passed into this function to fix it.
                        /// This method will panic if the `conf` has retry or timeouts enabled without a `sleep_impl`.
                        /// If you experience this panic, it can be fixed by setting the `sleep_impl`, or by disabling
                        /// retries and timeouts.
                        pub fn from_conf(conf: crate::Config) -> Self {
                            let retry_config = conf.retry_config().cloned().unwrap_or_else(#{RetryConfig}::disabled);
                            let timeout_config = conf.timeout_config().cloned().unwrap_or_else(#{TimeoutConfig}::disabled);