Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
davepacheco committed Feb 22, 2024
1 parent 717e6b0 commit f30d56b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nexus/src/app/rack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -885,8 +885,11 @@ impl super::Nexus {
},
};

let sa_url = self.get_any_sled_agent_url(opctx).await?;
// This timeout value is fairly arbitrary (as they usually are). As of
// this writing, this operation is known to take close to two minutes on
// production hardware.
let dur = std::time::Duration::from_secs(300);
let sa_url = self.get_any_sled_agent_url(opctx).await?;
let reqwest_client = reqwest::ClientBuilder::new()
.connect_timeout(dur)
.timeout(dur)
Expand Down

0 comments on commit f30d56b

Please sign in to comment.