Skip to content

Commit

Permalink
chore: clean up some bits (#3039)
Browse files Browse the repository at this point in the history
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [ ] Self-review.
- [ ] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
  • Loading branch information
Arqu authored Dec 12, 2024
1 parent c37895b commit 3be22f3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ missing_debug_implementations = "warn"
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(iroh_docsrs)"] }

[workspace.lints.clippy]
unused-async = "warn"
unused-async = "warn"
2 changes: 1 addition & 1 deletion iroh-relay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ required-features = ["server"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "iroh_docsrs"]
rustdoc-args = ["--cfg", "iroh_docsrs"]
2 changes: 1 addition & 1 deletion iroh-relay/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ async fn maybe_load_tls(

let cert_path = tls.cert_path();
let key_path = tls.key_path();
let interval = std::time::Duration::from_secs(relay::DEFAULT_CERT_RELOAD_INTERVAL);
let interval = relay::DEFAULT_CERT_RELOAD_INTERVAL;

let key_reader = rustls_cert_file_reader::FileReader::new(
key_path,
Expand Down
2 changes: 1 addition & 1 deletion iroh-relay/src/server/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use rustls::{
use tokio_util::{sync::CancellationToken, task::AbortOnDropHandle};

/// The default certificate reload interval.
pub const DEFAULT_CERT_RELOAD_INTERVAL: u64 = 60 * 60 * 24;
pub const DEFAULT_CERT_RELOAD_INTERVAL: Duration = Duration::from_secs(60 * 60 * 24);

/// A Certificate resolver that reloads the certificate every interval
#[derive(Debug)]
Expand Down

0 comments on commit 3be22f3

Please sign in to comment.