Skip to content

Commit

Permalink
fix: Prevent conflicting provisioning requests
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley committed Nov 11, 2024
1 parent 43477fb commit 4a949af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coordinator/src/handlers/data_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ impl DataLayerHandlerImpl {
pub fn connect(runner_url: &str) -> anyhow::Result<Self> {
let channel = Channel::from_shared(runner_url.to_string())
.context("Runner URL is invalid")?
.rate_limit(1, std::time::Duration::from_secs(5))
.connect_lazy();
let client = DataLayerClient::new(channel);

Expand Down

0 comments on commit 4a949af

Please sign in to comment.